Content
Data Table
A table with sortable column headers and row selection built in.
Group: Content. Exports: DataTable. shadcn/ui equivalent: Data Table (partial parity).
Usage
import { DataTable } from "./halaska-kit";
DataTable props
columnsarray:rowsarray:
Accessibility
- Renders native table, th and td elements. Column headers set scope and aria-sort.
- Each sortable header holds a native button, so sorting works with Tab, Enter and Space.
- Selection checkboxes are keyboard reachable and labelled, for example Select row 2. Selected rows set aria-selected.
- Selection stays with its row when the sort changes.
Known gaps
- No filtering, pagination or column visibility controls.
- Selection and sort are internal state: there is no callback to read the selected rows.
- No per-column cell renderers or row actions.
Halaska UI · Components · Patterns · Screens · Install