Table primitives
The styled markup a table is made of, composed by hand. Reach for these when Data table does not fit, rather than adding a prop to Data table for a layout only one screen needs.
Reach for it
A table the Data table does not fit: a summary, a nested layout, a fixed set of rows.
Not for
Anything that needs sorting or selection. That is the Data table, not a new prop on it.
Composed by hand
Every part is a component, so the markup stays a real table: a caption, a header, rows, cells and an alignment per column. Row intents are the same vocabulary Data table uses, which is what keeps a hand-built table looking like the rest of the product.
| Method | Share |
|---|---|
| Direct debit | 82% |
| Transfer | 14% |
| Card | 3% |
| Unreconciled | 1% |
| Instant payment | 0% |
A header that stays in view
Give the table a height and its rows scroll inside it while the header stays put. A pinned column keeps its place sideways too, and the cell where the two meet stays on top in both directions. The scrolling area is a named region, so a keyboard can reach it and scroll a table that holds no control.
| Reference | Debtor | Method | Due date | Amount |
|---|---|---|---|---|
| INV-1042 | Mooncard SAS | Direct debit | 12/03/2026 | 12,480.00 |
| INV-1043 | Acme SAS | Transfer | 14/03/2026 | 980.00 |
| INV-1044 | Globex | Direct debit | 15/03/2026 | 4,200.00 |
| INV-1045 | Initech | Card | 18/03/2026 | 310.00 |
| INV-1046 | Umbrella SARL | Direct debit | 21/03/2026 | 7,650.00 |
| INV-1047 | Hooli | Transfer | 22/03/2026 | 1,125.00 |
| INV-1048 | Stark Industries | Direct debit | 25/03/2026 | 23,900.00 |
| INV-1049 | Wayne SAS | Transfer | 27/03/2026 | 640.00 |
| INV-1050 | Wonka | Card | 28/03/2026 | 89.00 |
| INV-1051 | Soylent | Direct debit | 30/03/2026 | 5,300.00 |
| INV-1052 | Tyrell | Transfer | 02/04/2026 | 2,750.00 |
| INV-1053 | Cyberdyne | Direct debit | 04/04/2026 | 11,020.00 |
API reference
Table
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | - | Names the table for assistive technology. Required: an unnamed table is a grid of nothing. |
| isBusy | boolean | - | Announces that rows are being replaced, so a screen reader knows to wait. |
| layout | 'auto' | 'fixed' | - | `fixed` makes declared column widths authoritative. Under the browser default the widest cell wins, so one long debtor name drags every other column out of alignment and the header no longer sits over its data. |
| minWidth | number | - | Below this width the table scrolls instead of squeezing its columns. |
| maxHeight | number | - | Pixels. Past this height the rows scroll under the header, which stays in view. The table has to scroll itself for that: the wrapper scrolls sideways, so it is what a sticky header anchors to, and the page scrolling past it moves the header with the rest. |
Also takes the standard attributes of a table, minus className and style.
TableColGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | - |
TableCol
| Prop | Type | Default | Description |
|---|---|---|---|
| width | TableColumnWidth | - |
TableHeader
Also takes the props of HTMLAttributes<HTMLTableSectionElement, minus .
TableBody
Also takes the props of HTMLAttributes<HTMLTableSectionElement, minus .
TableFooter
Also takes the props of HTMLAttributes<HTMLTableSectionElement, minus .
TableRow
| Prop | Type | Default | Description |
|---|---|---|---|
| intent | 'default' | 'muted' | 'success' | 'warning' | 'danger' | default | |
| isInteractive | boolean | false | |
| isSelected | boolean | false |
Also takes the standard attributes of a table row, minus className and style.
TableHead
| Prop | Type | Default | Description |
|---|---|---|---|
| align | TableAlign | - | |
| onSort | () => void | - | Makes the header a sort control. Omit for a column that cannot be sorted. |
| sortDirection | 'ascending' | 'descending' | 'none' | - | |
| isSticky | TableSticky | - | Pins the column against one edge while the table scrolls sideways. |
| stickyOffset | number | - | Pixels from that edge, so a second pinned column rests against the first. |
Also takes the standard attributes of a table cell, minus className and style.
TableCell
| Prop | Type | Default | Description |
|---|---|---|---|
| align | TableAlign | - | |
| isSticky | TableSticky | - | Pins the column against one edge while the table scrolls sideways. |
| stickyOffset | number | - | Pixels from that edge, so a second pinned column rests against the first. |
| isTruncated | boolean | - | One line, ellipsised. Needs a column width to bite against. |
| isNumeric | boolean | - | Lining figures of equal width, so a column of amounts lines up. |
Also takes the standard attributes of a table cell, minus className and style.
TableCaption
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | - |