Table

Markdown

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/ui
import { Table } from '@stackunseen/ui';
Styles: @stackunseen/ui/styles.css

Parts

A native HTML table with the library styles. Wide tables scroll sideways in their own keyboard-reachable area.

How the parts fit together

tsx
<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>
  1. Table

    label names the table, even without a caption.

    Propslabel scrollLabel

  2. Table.Caption

    An optional visible title.

  3. Table.Header

    Group the rows. Table.Body and Table.Footer work the same way.

  4. Table.Row

    One row.

  5. Table.Head

    A header cell. Use scope="row" for a heading at the start of a row.

  6. Table.Cell

    A 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/Cell
How state and callbacks work
All 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
Open the Markdown file

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