Table

Outside the canon

Data 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

#orders

The 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.

StatusItemsTotalActions
#10542Hillside Food Co-opPending12$1,245.00
#10541Nolan's BakeryFulfilled28$3,890.50
#10540Broad Street BistroApproved16$2,150.00
#105394th Street BagelsShipped7$875.25
#10538Harbor Market & DeliCancelled4$450.00

Header cells: sortable, sorted and right-aligned

#header-states

Sortable 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 YirgacheffeL-2026-014GR-ETH-YIRText1,240
Colombia HuilaL-2026-011GR-COL-HUIText2,860
Guatemala AntiguaL-2026-009GR-GUA-ANTText640

Dense rows with numeric columns

#dense

dense 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.

SKULotOn hand (lb)Committed (lb)Available (lb)Cost / lb
Ethiopia YirgacheffeGR-ETH-YIRL-2026-0141,240380860$4.85
Colombia HuilaGR-COL-HUIL-2026-0112,8601,1201,740$3.90
Guatemala AntiguaGR-GUA-ANTL-2026-0096406400$4.20
Brazil CerradoGR-BRA-CERL-2026-0174,1209003,220$3.15
Kenya AAGR-KEN-AAL-2026-0063100310$6.40
Sumatra MandhelingGR-SUM-MANL-2026-012980220760$4.05

Horizontal scroll inside the frame

#scroll

min_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.

InvoiceCustomerIssuedDueStatusTotal
INV-1042Hillside Food Co-opFeb 4, 2026Mar 6, 2026Sent$1,245.00
INV-1041Nolan's BakeryFeb 3, 2026Mar 5, 2026Paid$3,890.50
INV-1040Broad Street BistroJan 21, 2026Feb 20, 2026Overdue$2,150.00

Unframed, flush inside a panel

#unframed

bordered={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.

Invoices3 of 287
InvoiceCustomerIssuedDueStatusTotal
INV-1042Hillside Food Co-opFeb 4, 2026Mar 6, 2026Sent$1,245.00
INV-1041Nolan's BakeryFeb 3, 2026Mar 5, 2026Paid$3,890.50
INV-1040Broad Street BistroJan 21, 2026Feb 20, 2026Overdue$2,150.00

Inside a card

#in-card

in_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

InvoiceCustomerIssuedDueStatusTotal
INV-1042Hillside Food Co-opFeb 4, 2026Mar 6, 2026Sent$1,245.00
INV-1041Nolan's BakeryFeb 3, 2026Mar 5, 2026Paid$3,890.50
INV-1040Broad Street BistroJan 21, 2026Feb 20, 2026Overdue$2,150.00

A table of inputs, reflowed below md

#reflow

The 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.

QuantityProductBase Price$78.00Subtotal$156.00

Grouped rows

#grouped

TableGroupRow (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.

DateTypeAmount
R1245Broad Street Bistro2 transactionsNet $0.00
Feb 9, 2026Payment$2,150.00
Feb 9, 2026Refund-$2,150.00
R1248Hillside Food Co-op2 transactionsNet $1,282.50
Feb 6, 2026Credit Applied$54.38
Feb 10, 2026Payment$1,228.12

Props

NameTypeDefaultNotes
Table.min_width_classNamestring—A min-width on the <table>, e.g. "min-w-[64rem]"; the frame scrolls horizontally
Table.featuredbooleanfalseThe 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.borderedbooleantruefalse drops the white frame so the table sits flush inside Card padded={false} or a list panel
Table.in_cardbooleanfalseFor 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.classNamestring—On the frame (or the scroll region when unframed)
Table.stack_belowmd | 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_belowmd | 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_headbooleanfalsePin 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
TableCellLabelcomponent—A reflowed cell's label, in the head cell's spelling; renders only while reflowed
RowActionsMenucomponent—The kebab and its menu without the <td> (2026-10-15), shared by TableActionsCell and StackedListItem
TableHead.row_classNamestring—On the header <tr>
TableFoot.row_classNamestring—On the footer <tr>, which carries the 2px rule and the surface-bg fill
TableHeaderCell.alignleft | rightleft
TableHeaderCell.sortablebooleanfalseContent becomes a <button>; cursor-pointer, hover:text-stone-dark, select-none; aria-sort on the <th>
TableHeaderCell.sortasc | desc | nonenoneasc → chevron-up, desc → chevron-down (regular, xs); none shows no icon
TableHeaderCell.onClickMouseEventHandler—On the sort button (sortable only)
TableHeaderCell.width_classNamestring—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_keystring—With Table onColumnMove: a drag handle on hover, and a drop target. Off for pinned columns
TableHeaderCell.column_labelstring—The column's name for the drag chip, where children are not plain text
TableRow.statedefault | selected | current | disableddefaultselected sets aria-selected
TableRow.onClickMouseEventHandler—Passed through to the <tr>
TableGroupRow.colSpannumber—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.densebooleanfalsepy-3 instead of py-4
TableCell.alignleft | right—
TableCell.numericbooleanfalsetext-right tabular-nums font-medium
TableCell.mutedbooleanfalsetext-stone-light
TableCell.nowrapbooleanfalsewhitespace-nowrap
TableSelectCell.headerbooleanfalseRenders the select-all <th>; aria-label defaults to "Select all" / "Select row"
TableSelectCell.checked / indeterminate / disabled / onChange / aria-labelCheckboxProps—Passed through to the bare Checkbox
TableSelectCell.densebooleanfalse
TableActionsCell.childrenReactNode—The menu items; use the action-menu recipe classes and wrap each in PopoverClose
TableActionsCell.disabledbooleanfalseGreys out the kebab and renders no Popover
TableActionsCell.titlestringMore actionsThe kebab's tooltip and accessible label
TableActionsCell.placementPlacementbottom-end
TableActionsCell.panel_classNamestringw-auto min-w-[13rem] max-w-xsThe menu sizes to its widest item between a 208px floor and a 320px cap
TableActionsCell.densebooleanfalse