Skip to content
kapable

Table

Data display · 1 export · v0.1.0 · showcase

Semantic data table in a named scroll region with optional server-owned sorting links.

Browse 72 component families
Recent deploys
appstatus
launchpadpass
consolewarn

Usage

Table usage
<Table caption="Recent deploys" head={['app', 'status']}>…rows…</Table>

API

Table API

TableProps

Table props
proptypenotes
captionstringAccessible table name, rendered as a real sr-only `<caption>` and referenced by the scroll region via `aria-labelledby`. Required.
id?stringStable caption id when the table shares a document with separately rendered fragments.
headArray<RemixNode | SortableHeader>`<th scope="col">` cell contents; the kit renders the header cells. A `{ label, sort }` entry renders a sortable-column link with `aria-sort`.
children?RemixNode`<tr>` rows (apps author the `<td>` cells; the kit styles them).
dense?booleanTighter cell padding for data-dense tables.
stickyHead?booleanHeader row sticks while the page scrolls (long tables).
mix?MixInputComposition passthrough for the scroll wrapper.

More in Data display

More in Data display