Table
A semantic table inside a keyboard-scrollable boundary.
Interactive preview
| Project | Status | Owner |
|---|---|---|
| Orbit workspace | Ready | Ada |
| Dev Station studio | In progress | Bea |
| Field notes | Draft | Cal |
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:
| Prop | Type | Default | Description |
|---|---|---|---|
| caption | ReactNode | required | Visible table name. |
| striped / compact | boolean | false | Row emphasis and density. |
| scrollLabel | string | Scrollable table | Accessible 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 tableMake 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.
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.