Table
Outside the canonData table from the workshop's Priority 2: Data Tables, as one unit with sub-parts (Table, TableHead, TableHeaderCell, TableBody, TableRow, TableCell, TableSelectCell, TableActionsCell, TableFoot). TableFoot (2026-10-05) is the summary band under the rows — a document's totals, a list's sum: a <tfoot> row with the head's 2px stone-dark rule mirrored and a surface-bg fill, so it brackets the rows rather than being one more of them. It is inside the frame on purpose, as the reference order page renders its summary figures in the same container as the line-item table. Row tint decision (conflict 9): checkbox-selected rows are navy/5 from the bulk bar spec (navy = chosen) and the row open in the side panel is mustard/10 from the workshop (mustard = you are here). Respellings from the workshop (conflict 7): Tailwind grey 200 dividers → stone-200, grey 50 row hover and cancelled background → stone-50, text-xs → text-ui-xs, the kebab's p-1.5 grey-hover button → the icon-only Button (which keeps its tooltip), heroicon SVGs → Icon. Back to the workshop's weights on 2026-10-02: a 2px stone-dark frame, a 2px stone-dark rule under the head, uppercase semibold ui-xs column names in stone on the surface-muted band, and cells at px-4 — all of which had been softened to a 1px frame, sentence-case ui-sm heads in stone-light between 2026-09-24 and then. The cell's own size went back to ui-sm on 2026-10-06: the frame, the head rule, the heads and the page title all stay where the reset put them, but the rest of a record page had moved under the table — the Document rail is 10/12px and a document's transaction rows are ui-sm — and a 16px cell was the one thing on the page set larger than the prose around it. py-3 against the 20px line keeps the ~44px row. `uppercase tracking-wider` is repeated on the sort button because a <button> does not take the cell's text-transform. Outside the canon vocabulary; overlaps Ui::HeaderCellComponent on the DEV-3250 branch (conflict 12).
App: Ui::TableComponent (suggested); overlaps Ui::HeaderCellComponent on the DEV-3250 branch
Orders, all four row states
#ordersThe workshop's orders table. Two rows selected (navy/5, the bulk bar's selection tint), one current (mustard/10: open in the side panel), one default, one cancelled (disabled: stone-50 at 60% opacity, total struck through). The select-all header is indeterminate while only some rows are selected. Order is a TextLink entity-id, Customer an entity-name; the kebab is an icon-only Button that opens the action-menu Popover.
2 selected. Mock behaviour: the checkboxes toggle row state; the app's selectable controller does this.
| Status | Items | Total | Actions | |||
|---|---|---|---|---|---|---|
| #10542 | Hillside Food Co-op | Pending | 12 | $1,245.00 | ||
| #10541 | Nolan's Bakery | Fulfilled | 28 | $3,890.50 | ||
| #10540 | Broad Street Bistro | Approved | 16 | $2,150.00 | ||
| #10539 | 4th Street Bagels | Shipped | 7 | $875.25 | ||
| #10538 | Harbor Market & Deli | Cancelled | 4 | $450.00 |
Header cells: sortable, sorted and right-aligned
#header-statesSortable cells wrap their label in a button and show the chevron for asc and desc; none shows no icon. The cell gets cursor-pointer, hover:text-stone-dark and select-none, and the <th> carries aria-sort. Numeric headers right-align to sit over their numbers.
| Not sortable | ||||
|---|---|---|---|---|
| Ethiopia Yirgacheffe | L-2026-014 | GR-ETH-YIR | Text | 1,240 |
| Colombia Huila | L-2026-011 | GR-COL-HUI | Text | 2,860 |
| Guatemala Antigua | L-2026-009 | GR-GUA-ANT | Text | 640 |
Dense rows with numeric columns
#densedense tightens cells to py-3 for inventory-style tables. numeric right-aligns with tabular figures and medium weight so columns of numbers line up; muted de-emphasises the lot with colour, never by shrinking the type.
| SKU | Lot | On hand (lb) | Committed (lb) | Available (lb) | Cost / lb | |
|---|---|---|---|---|---|---|
| Ethiopia Yirgacheffe | GR-ETH-YIR | L-2026-014 | 1,240 | 380 | 860 | $4.85 |
| Colombia Huila | GR-COL-HUI | L-2026-011 | 2,860 | 1,120 | 1,740 | $3.90 |
| Guatemala Antigua | GR-GUA-ANT | L-2026-009 | 640 | 640 | 0 | $4.20 |
| Brazil Cerrado | GR-BRA-CER | L-2026-017 | 4,120 | 900 | 3,220 | $3.15 |
| Kenya AA | GR-KEN-AA | L-2026-006 | 310 | 0 | 310 | $6.40 |
| Sumatra Mandheling | GR-SUM-MAN | L-2026-012 | 980 | 220 | 760 | $4.05 |
Horizontal scroll inside the frame
#scrollmin_width_className="min-w-[64rem]" keeps the columns readable and lets the frame scroll sideways instead of the page. Shown inside a max-w-md wrapper; at 390 and 768 the same happens with the full page width.
| Invoice | Customer | Issued | Due | Status | Total |
|---|---|---|---|---|---|
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
Sticky head
#sticky-headsticky_head pins the head to the top of the page while the rows scroll under it (2026-10-27, every list page). Scroll the page past this table: a copy of the head shows once the real one has gone, with the same column widths, and it follows the table's sideways scroll (the frame here is max-w-xl, so it scrolls).
| Invoice | Customer | Issued | Due | Status | Total |
|---|---|---|---|---|---|
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
Unframed, flush inside a panel
#unframedbordered={false} drops the white frame so the table sits flush inside Card padded={false} or a list panel that draws its own border (here a bare box with the same classes as the frame). The header's border-b-2 becomes the divider under the panel's toolbar.
| Invoice | Customer | Issued | Due | Status | Total |
|---|---|---|---|---|---|
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
Inside a card
#in-cardin_card takes the light frame one step lighter, to stone-300, inside a quiet card's stone-400 edge, so the card reads first and the table second (DES2-11). The credit memo form's Line Items and Credit Items tables use it. Everywhere else a light table is stone-400, the same edge as the cards around it.
Invoices
| Invoice | Customer | Issued | Due | Status | Total |
|---|---|---|---|---|---|
| INV-1042 | Hillside Food Co-op | Feb 4, 2026 | Mar 6, 2026 | Sent | $1,245.00 |
| INV-1041 | Nolan's Bakery | Feb 3, 2026 | Mar 5, 2026 | Paid | $3,890.50 |
| INV-1040 | Broad Street Bistro | Jan 21, 2026 | Feb 20, 2026 | Overdue | $2,150.00 |
A table of inputs, reflowed below md
#reflowThe credit memo form's line items (2026-10-15). Narrow the window under 768px: the head hides, each row becomes a grid — the product across the top, then quantity, base price and subtotal — and each cell shows its own label in the head's spelling. One markup, so no input is doubled the way a stacked copy would double it.
| Quantity | Product | Base Price | Subtotal |
|---|---|---|---|
| Quantity | Product | Base Price$78.00 | Subtotal$156.00 |
Grouped rows
#groupedTableGroupRow (2026-10-30): a heading over the rows that follow, as Transactions grouped by order has it — the order and its customer, then the count and the net. The StackedListGroup's band, set as row text rather than the head's uppercase label, because it names a record. Inside a group the rows run in the order they happened.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| Table.min_width_className | string | — | A min-width on the <table>, e.g. "min-w-[64rem]"; the frame scrolls horizontally |
| Table.featured | boolean | false | The page's one loud table (2026-10-08): 2px stone-dark frame, 12px radius, brutalist shadow, head and foot at 2px. Every other table is light: white, 1px stone-400 (stone-200 until DES2-11, 2026-10-23), 8px radius, a stone-25 head on a hairline |
| Table.bordered | boolean | true | false drops the white frame so the table sits flush inside Card padded={false} or a list panel |
| Table.in_card | boolean | false | For a light table inside a card (DES2-11): the frame goes one step lighter, to stone-300, so the card's stone-400 edge reads first. The credit memo form's item tables |
| Table.className | string | — | On the frame (or the scroll region when unframed) |
| Table.stack_below | md | lg | — | Hide the table below this width, where the page renders the same rows as a StackedList (2026-10-15). Unset, it scrolls sideways at every width, as before |
| Table.reflow_below | md | lg | — | For a table of inputs (2026-10-15): below this width the head hides and each row becomes a grid the page places with col-start/row-start classes on its cells. One markup, so no input is doubled. Pair with TableCellLabel |
| Table.sticky_head | boolean | false | Pin the head to the top of the page card while the rows scroll under it (2026-10-27; every list page). A copy of the head in a slot above the scroll region, sticky, shown once the real head has scrolled away, its cells the real ones' measured widths, following the sideways scroll. In a list card whose ListChrome band sticks above it (from lg), the copy pins under the band, its top the band's height. The real head stays for the keyboard and screen readers; the copy is aria-hidden with its controls out of the tab order, but clicks work. Needs every frame around it to clip with overflow-clip, not overflow-hidden |
| TableCellLabel | component | — | A reflowed cell's label, in the head cell's spelling; renders only while reflowed |
| RowActionsMenu | component | — | The kebab and its menu without the <td> (2026-10-15), shared by TableActionsCell and StackedListItem |
| TableHead.row_className | string | — | On the header <tr> |
| TableFoot.row_className | string | — | On the footer <tr>, which carries the 2px rule and the surface-bg fill |
| TableHeaderCell.align | left | right | left | |
| TableHeaderCell.sortable | boolean | false | Content becomes a <button>; cursor-pointer, hover:text-stone-dark, select-none; aria-sort on the <th> |
| TableHeaderCell.sort | asc | desc | none | none | asc → chevron-up, desc → chevron-down (regular, xs); none shows no icon |
| TableHeaderCell.onClick | MouseEventHandler | — | On the sort button (sortable only) |
| TableHeaderCell.width_className | string | — | e.g. "w-12", "w-40" |
| Table.onColumnMove | (key, before_key | null) => void | — | Reorder columns from the head (2026-10-27): see Columns control |
| TableHeaderCell.column_key | string | — | With Table onColumnMove: a drag handle on hover, and a drop target. Off for pinned columns |
| TableHeaderCell.column_label | string | — | The column's name for the drag chip, where children are not plain text |
| TableRow.state | default | selected | current | disabled | default | selected sets aria-selected |
| TableRow.onClick | MouseEventHandler | — | Passed through to the <tr> |
| TableGroupRow.colSpan | number | — | Required. Every column, select and actions cells included (2026-10-30): a heading over the rows that follow, in the StackedListGroup's band, set as row text (it names a record), its content kept left so it stays in view while a wide table scrolls. A <th scope="colgroup"> |
| TableCell.dense | boolean | false | py-3 instead of py-4 |
| TableCell.align | left | right | — | |
| TableCell.numeric | boolean | false | text-right tabular-nums font-medium |
| TableCell.muted | boolean | false | text-stone-light |
| TableCell.nowrap | boolean | false | whitespace-nowrap |
| TableSelectCell.header | boolean | false | Renders the select-all <th>; aria-label defaults to "Select all" / "Select row" |
| TableSelectCell.checked / indeterminate / disabled / onChange / aria-label | CheckboxProps | — | Passed through to the bare Checkbox |
| TableSelectCell.dense | boolean | false | |
| TableActionsCell.children | ReactNode | — | The menu items; use the action-menu recipe classes and wrap each in PopoverClose |
| TableActionsCell.disabled | boolean | false | Greys out the kebab and renders no Popover |
| TableActionsCell.title | string | More actions | The kebab's tooltip and accessible label |
| TableActionsCell.placement | Placement | bottom-end | |
| TableActionsCell.panel_className | string | w-auto min-w-[13rem] max-w-xs | The menu sizes to its widest item between a 208px floor and a 320px cap |
| TableActionsCell.dense | boolean | false |