Table
A responsive table for tabular data. Built with logical alignment (text-start/ text-end) so columns flip correctly in RTL — toggle direction in the preview. For sorting, filtering, and pagination, see Data Table.
Basic
Headers and cells default to text-start. Align amounts with text-end.
Installation
CLI
Composition
structure
Usage
table.tsx
Direction
The scroll container receives dir from useDirection. Prefer text-end for amounts — never text-right.
direction.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | On any part — merge Tailwind classes (e.g. `text-end` on amount cells). |
| colSpan | number | — | On `TableCell` / `TableHead` — span columns. |