Spreadsheet

A table worked in cell by cell under a top bar: view tools, typed columns that sort, a summary under each header, row selection and a status bar.

Open full screen

Flat · Top bar. <AppShell direction="flat">: one white surface; lines split the navigation, the page header and the content.

npx wideset add block-spreadsheet

Import the default export from @/blocks/wideset/spreadsheet. The files below are relative to your project's source directory.

Installed with this block
  • app-shell
  • avatar
  • block-styles
  • button
  • checkbox
  • dropdown-menu
  • icon-button
  • list-item
  • navigation-bar
  • segmented-control
  • spreadsheet
  • status-badge
  • tag
  • text-input
  • utils
blocks/wideset/spreadsheet/index.tsx
'use client';

import '@/styles/wideset-blocks.css';

import { AppShell } from '@/components/ui/wideset/app-shell/AppShell';

import { ClientSheet } from './client-sheet';
import { StatusBar } from './status-bar';
import { Toolbar } from './toolbar';
import { TopBar } from './top-bar';

/**
 * Spreadsheet, Flat direction under a top bar: the Clients table with its view tools, the grid as
 * a canvas that fills the window, and a status bar. Top bar and toolbar stay full-bleed.
 */
export default function SpreadsheetBlock() {
  return (
    <AppShell className="ws-block-utility" direction="flat">
      <AppShell.Main className="flex flex-col">
        <TopBar />
        <Toolbar />
        <ClientSheet className="min-h-0 flex-1" />
        <StatusBar />
      </AppShell.Main>
    </AppShell>
  );
}