DataTable

Wires TanStack Table's row model to the Table parts, adding sorting and optional pagination. Use it for tabular data that needs behaviour rather than markup.

React

Ready

Figma

Import

import { DataTable } from "@kela-systems/ui-components";

This page has no live example yet. Storybook shows DataTable in every state and theme.

Props

DataTable

NameDefaultDescription
className
string
columnsRequired
ColumnDef<TData, TValue>[]
dataRequired
TData[]
paginated
boolean
falseAdds the previous/next footer and slices rows to pageSize.
pageSize
number
10Rows per page. An options.initialState value is spread later and wins.
emptyMessage
React.ReactNode
No results.Accepts text or a composed <Empty> for a richer empty state.
loading
boolean
falseRenders pageSize placeholder rows with one Skeleton per column.
labels
Partial<DataTableLabels>
Overrides pagination copy while retaining English defaults.

It also takes the props of @tanstack/react-table.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.