Table
A plain table in a labeled area you can scroll with the keyboard.
Used in SaaS admin.
- Use it for
- Read-only tabular data with native semantics.
- Not for
- Sorting, paging and selection. Try DataGrid.
Table preview
Loading example…
Installation
npm install @stackunseen/uiimport { Table } from '@stackunseen/ui';@stackunseen/ui/styles.cssParts
A native HTML table with the library styles. Wide tables scroll sideways in their own keyboard-reachable area.
How the parts fit together
<Table label="Packages">
<Table.Caption>Sample package status</Table.Caption>
<Table.Header>
<Table.Row>
<Table.Head>Package</Table.Head>
<Table.Head>Status</Table.Head>
</Table.Row>
</Table.Header>
<Table.Body>
<Table.Row>
<Table.Head scope="row">Components</Table.Head>
<Table.Cell>Experimental alpha</Table.Cell>
</Table.Row>
</Table.Body>
</Table>Tablelabelnames the table, even without a caption.Table.CaptionAn optional visible title.
Table.HeaderGroup the rows.
Table.BodyandTable.Footerwork the same way.Table.RowOne row.
Table.HeadA header cell. Use
scope="row"for a heading at the start of a row.Table.CellA data cell.
Usage and props
Give it a caption and clear headers. Sorting, loading and selection are up to you; use DataTable when it fits your data.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
label: string · scrollLabel? · native table props/ref · Caption/Header/Body/Footer/Row/Head/CellAll props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- label: string · scrollLabel? · native table props/ref · Caption/Header/Body/Footer/Row/Head/Cell
- Keeps honest
- Give it a caption and clear headers. Sorting, loading and selection are up to you; use DataTable when it fits your data.
- MCP
read_component "Table"on the docs endpoint
Keyboard and customization
Keyboard
Tab reaches the scroll region when needed; arrow keys scroll wide content. Column and row headers preserve native table semantics.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio