Components
Components
DataTable
Advanced table powered by TanStack Table on Komponents surfaces.
newfree
pnpm add @komponents/uiCanonical TypeScript source · tree-shakeable subpathsDataTable keeps Komponents visuals while TanStack owns sorting state and column definitions. Use the foundation Table for simpler static grids.
| Name | Role | Score |
|---|---|---|
| Nova Hale | Ops | 92 |
| Riven Cole | Design | 88 |
| Mira Quill | Engineering | 95 |
Usage
Accessibility
aria-labelis a required prop, so the table is never unnamed- React Aria grid semantics: arrow keys move between cells, Home/End jump along a row
- The first column is the row header, giving each row a name when a cell is read in isolation
- Sortable headers expose
aria-sort(none,ascending,descending) and toggle with Enter or Space — the caret glyph isaria-hidden, so sort state never depends on seeing it - Sorting is driven through React Aria's
sortDescriptor, so the announcement stays in sync with the TanStack sort state