Components
DataTable
Interactive table with sorting, filtering, and pagination.
A fully interactive data table with row selection, column sorting, search filtering, and pagination.
Installation
Usage
Keyboard Shortcuts
| Key | Action |
|---|---|
↑ / ↓ | Navigate rows |
← / → | Switch pages |
/ | Toggle search mode |
s | Cycle sort on sortable column |
Enter | Select row |
Esc | Exit search |
g / G | First / last row |
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
columns | DataTableColumn[] | — | Column definitions (required) |
data | T[] | — | Row data (required) |
pageSize | number | 10 | Rows per page |
searchable | boolean | true | Enable search |
onSelect | (row, index) => void | — | Called on row selection |
selectable | boolean | true | Enable row highlighting |
showFooter | boolean | true | Show pagination footer |
emptyMessage | string | 'No data' | Empty state message |
focus | boolean | true | Accept keyboard input |
theme | InkUITheme | darkTheme | Color theme |