bloxa

Data Table

FREE

Table 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-table

Examples

Full featured

Search, Plan/Country filters, click headers to sort, selection, column toggle (Email starts hidden) and pagination.

Emre ŞahinProItaly11/4/20261,499
Sofia GarciaFreeJapan10/1/20260
Can ÖztürkProGermany9/25/2026999
Marco RossiProTürkiye8/22/20261,749
Zeynep ArslanFreeFrance7/19/20260
Kenji SatoProUnited States6/16/20261,249
14 / 14
Page 1 of 3

Localized (Turkish)

Turkish labels, locale-aware sorting and number/date formatting.

Sipariş
SP-1042Şule Çelikİzmir1.249,902.11.2026
SP-1043Ömer GüneşAnkara34905.11.2026
SP-1044İpek Uğurİstanbul2.890,509.11.2026
SP-1045Çağrı Ilgazİzmir99,9911.11.2026
4 / 4

API reference

Every component also accepts the props of the element it renders.

DataTable

PropTypeDefaultDescription
dataT[]—Rows.
columnsDataTableColumn<T>[]—{ key, header, accessor?, cell?, sortable?, filterable?, align?, hidden? }
rowKey(row: T) => string—Stable id for a row.
searchablebooleantrueSearch across visible columns.
pageSizenumber10Rows per page; 0 disables paging.
selectablebooleanfalseRow selection checkboxes.
onSelectionChange(rows: T[]) => void—Called when the selection changes.
columnTogglebooleantrueShow/hide columns menu.
defaultSort{ key, direction }—Initial sort.
toolbarReactNode—Extra toolbar controls.
tablePropsTableProps—Passed to Table (striped, hover, stackOnMobile…).
localestring—Locale for sorting and number/date formatting.
labels{ search?, filter?, columns?, empty?, … }—UI strings (for translation).