Table
dataData table with typed column definitions, row hover, optional striped rows, caption, and responsive horizontal scroll. Uses semantic HTML with role=table, scope=col headers.
Import
typescript
import { Table } from "packages/ui/src";Props
TableProps
| Prop | Type | Required |
|---|---|---|
columns | TableColumn[] | Yes |
data | Record<string, ReactNode>[] | Yes |
caption | string | No |
striped | boolean | No |
className | string | No |
Examples
Default Table
| Component | Family | Tokens | Tests |
|---|---|---|---|
| Button | Action | 9 | 8 |
| Card | Layout | 4 | 8 |
| Modal | Overlays | 14 | 8 |
| Input | Forms | 17 | 8 |
| Table | Data | 14 | 8 |
Striped Rows
| Component | Family | Tokens | Tests |
|---|---|---|---|
| Button | Action | 9 | 8 |
| Card | Layout | 4 | 8 |
| Modal | Overlays | 14 | 8 |
| Input | Forms | 17 | 8 |
| Table | Data | 14 | 8 |
With Caption
| Component | Family | Tokens | Tests |
|---|---|---|---|
| Button | Action | 9 | 8 |
| Card | Layout | 4 | 8 |
| Modal | Overlays | 14 | 8 |
| Input | Forms | 17 | 8 |
| Table | Data | 14 | 8 |