Data Table
FREETable with search, column filters, sorting, pagination, row selection and column visibility.
Installation
Terminal
npx @bloxa/cli add data-table
# or: npx shadcn@latest add @bloxa/data-tableExamples
Full featured
Search, Plan/Country filters, click headers to sort, selection, column toggle (Email starts hidden) and pagination.
| Emre Şahin | Pro | Italy | 11/4/2026 | 1,499 | |
| Sofia Garcia | Free | Japan | 10/1/2026 | 0 | |
| Can Öztürk | Pro | Germany | 9/25/2026 | 999 | |
| Marco Rossi | Pro | Türkiye | 8/22/2026 | 1,749 | |
| Zeynep Arslan | Free | France | 7/19/2026 | 0 | |
| Kenji Sato | Pro | United States | 6/16/2026 | 1,249 |
14 / 14
Page 1 of 3
Localized (Turkish)
Turkish labels, locale-aware sorting and number/date formatting.
| Sipariş | ||||
|---|---|---|---|---|
| SP-1042 | Şule Çelik | İzmir | 1.249,9 | 02.11.2026 |
| SP-1043 | Ömer Güneş | Ankara | 349 | 05.11.2026 |
| SP-1044 | İpek Uğur | İstanbul | 2.890,5 | 09.11.2026 |
| SP-1045 | Çağrı Ilgaz | İzmir | 99,99 | 11.11.2026 |
4 / 4
API reference
Every component also accepts the props of the element it renders.
DataTable
| Prop | Type | Default | Description |
|---|---|---|---|
| data | T[] | — | Rows. |
| columns | DataTableColumn<T>[] | — | { key, header, accessor?, cell?, sortable?, filterable?, align?, hidden? } |
| rowKey | (row: T) => string | — | Stable id for a row. |
| searchable | boolean | true | Search across visible columns. |
| pageSize | number | 10 | Rows per page; 0 disables paging. |
| selectable | boolean | false | Row selection checkboxes. |
| onSelectionChange | (rows: T[]) => void | — | Called when the selection changes. |
| columnToggle | boolean | true | Show/hide columns menu. |
| defaultSort | { key, direction } | — | Initial sort. |
| toolbar | ReactNode | — | Extra toolbar controls. |
| tableProps | TableProps | — | Passed to Table (striped, hover, stackOnMobile…). |
| locale | string | — | Locale for sorting and number/date formatting. |
| labels | { search?, filter?, columns?, empty?, … } | — | UI strings (for translation). |