Components
Components
DataTable
Advanced table powered by TanStack Table on Hewn surfaces.
newfree
Install
@hewnui/ui · hewnui
DataTable keeps Hewn 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
API reference
Props for DataTable from @hewnui/ui/data-table. Generated from component types — not hand-written.
Prop
Type