Get StartedComponentsStylingThemingMath & Science
MCP

Data

Data Table

A table with sorting, filtering, pagination and row selection.

Markdown

Import

tsx
import { DataTable } from "@indoku/ui"

Examples

Basic usage

INV001paidken99@example.com$250.00
INV002pendingabe45@example.com$150.00
INV003failedmonserrat44@example.com$350.00
INV004paidsilas22@example.com$450.00
INV005paidcarmella@example.com$550.00

Props

Root

PropTypeDefaultDescription
data*T[]–
columns*DataTableColumn<T>[]–
getRowId(row: T, index: number) => string–Unique id of each row (used for selection). Defaults to the index in data.
pageSizenumber–
defaultSortSortState–
selectableboolean–
onSelectionChange(rows: T[]) => void–
labelsPartial<DataTableLabels>–
childrenReactNode–

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev