Skip to content
Cynco UI

Components · Data display

DataTable

Cynco's data-table kit on TanStack Table: toolbar, heading, tray, header, body, virtualisation, pagination and column visibility.

import { DataTable } from "@cynco-labs/ui";

Example

Use

Every list page (invoices, customers, items).

Props

A TanStack table instance (useReactTable + getCoreRowModel from @tanstack/react-table) passed via DataTable.Provider config={{table, numberOfColumns, isLoading}}; compose Toolbar › Heading + Actions, then Container › Content › Header + Body. Optional onRowClick, getRowHref + linkComponent, enableSelection, virtualization.

Notes

Exported as DataTable so it does not clash with the Table primitive. Surfaces use the table-* tokens.

Source Demo source Markdown