Components
Table
Applicant ledgers and batch lists. Fluid-hover rows, a size ladder and merged selection fills that reposition with the data. Built for wide admin surfaces.
| Control no. | Name | Barangay | Status |
|---|---|---|---|
| 2026-0271 | Dela Cruz, Andrea | Poblacion | For review |
| 2026-0270 | Santos, Miguel | Zone 1 | For review |
| 2026-0264 | Reyes, Bea | San Isidro | Forwarded |
| 2026-0258 | Lim, Carlo | Poblacion | Approved |
Usage
Wide ledgers that need scanning, selection and row actions.
Do and don't
- Do. Give each row an index and use Badge for status columns.
- Don't. Use it for tiny two-column layouts or expect a built-in sort API.
Composition
TableHeader, TableBody, TableRow, TableHead, TableCell and TableEmpty are all exported. Give each row an index so hover and reorder animation track the right row.
Props
size="default" | "compact"; pins the row ladder. Omit to follow the surrounding size context.selectedIndices; ordered row indices with the selection treatment applied.snapKey; change it when rows reorder so selection fills snap to their new positions instead of springing across the table.TableEmptyacceptscolumns,title,descriptionandaction.
Sorting itself is consumer logic. The component animates rows when the data order changes; it does not provide an onSort handler or aria-sort state.
Behavior and states
Rows light under the pointer and under keyboard focus through the same hover layer. Selection is expressed as a merged fill across consecutive selectedIndices, so it reads as one block rather than a row-per-row tint. An empty result uses TableEmpty with a title, an explanation and one next action. See States & Feedback for the shared vocabulary.
Related
Pair with Scroll Area for long vertical lists. Row fills and dividers use the Colors interaction tokens.