v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

Table

A semantic table inside a keyboard-scrollable boundary.

Interactive preview

Project activity
ProjectStatusOwner
Orbit workspaceReadyAda
Dev Station studioIn progressBea
Field notesDraftCal

Usage

import { Table } from "@devvy-ui/react";

<Table caption="Project activity" striped><thead><tr><th scope="col">Project</th><th scope="col">Status</th></tr></thead><tbody><tr><th scope="row">Orbit</th><td>Ready</td></tr><tr><th scope="row">Studio</th><td>In progress</td></tr></tbody></Table>

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
captionReactNoderequiredVisible table name.
striped / compactbooleanfalseRow emphasis and density.
scrollLabelstringScrollable tableAccessible scroll-region name.

Accessibility & behavior

Platform Behavior & Guidelines

Compose native thead, tbody, th and td; use scope for headers. Keep the caption in this prop rather than adding a second one. Horizontal overflow stays inside a named focusable region. This is a semantic base table; sorting/filtering belong to a future DataTable or your own composition.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add table

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

Table.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.