Components
Data grid
Virtualized React data grid with sorting, typed and advanced filtering, grouping, pivot, inline editing, server row models, range charts, and Excel or PDF export.
TableCore handles large tables (100k+ rows and 200+ columns) with two-axis virtualization, pinned rows and columns, roving keyboard focus, grouping/tree hierarchies, remote datasources, and built-in CSV, Excel, and PDF export.
For architecture, server-side row models, inline chart.js vs @composerkit/charts boundaries, and CSS tokens, read the Data grid guide.
Loading the component gallery…
Install
shadcn registry
npx shadcn@latest init --defaults --yesnpx shadcn registry add '@composerkit=https://composerkit.dynd.ai/r/{name}.json'npx shadcn add https://composerkit.dynd.ai/r/data-grid.json --overwrite{+{+ "registries": {+ "@composerkit": "https://composerkit.dynd.ai/r/{name}.json"+ }+}}Import
import { TableCore } from "@/components/data-grid/index";Demo code
"use client";import { TableCore } from "composerkit/components/data-grid/index";import type { ColumnDef, RowData,} from "composerkit/components/data-grid/index";import { useState } from "react";import { AppearanceControl } from "@/components/appearance-control";const INITIAL_COLUMNS: ColumnDef[] = [ { filterable: true, header: "Name", key: "name", movable: true, sortable: true, }, { filterType: "set", filterable: true, groupable: true, header: "Region", key: "region", sortable: true, }, { aggFunc: "sum", editable: true, filterType: "number", filterable: true, header: "Amount", key: "amount", sortable: true, type: "number", }, { header: "Status", key: "status", sortable: true, },];const INITIAL_ROWS: RowData[] = [ { amount: 1200, id: "r1", name: "Northwind", region: "North", status: "Active", }, { amount: 850, id: "r2", name: "Contoso", region: "North", status: "Active" }, { amount: 2400, id: "r3", name: "Fabrikam", region: "South", status: "Pending", }, { amount: 1640, id: "r4", name: "Tailspin", region: "South", status: "Active", }, { amount: 980, id: "r5", name: "Woodgrove", region: "East", status: "Review", }, { amount: 3120, id: "r6", name: "Proseware", region: "East", status: "Active", },];export const DataGridGalleryExample = () => { const [rows, setRows] = useState<RowData[]>(INITIAL_ROWS); return ( <main className="gallery"> <header className="flex flex-wrap items-center justify-between gap-4"> <div> <h1>Data grid</h1> <p className="text-sm text-muted-foreground"> Virtualized data grid with sorting, filtering, row grouping, inline editing, range selection, and CSV/Excel/PDF export. </p> </div> <AppearanceControl id="data-grid-gallery-appearance" /> </header> <section> <h2>Interactive grid</h2> <TableCore columns={INITIAL_COLUMNS} onRowsChange={setRows} rows={rows} selectionMode="multiple" toolbar={{ items: [ { builtin: "quickFilter", id: "search" }, { builtin: "exportCsv", id: "csv" }, ], }} statusBar={{ statusPanels: [ { id: "total", type: "totalRowCount" }, { id: "filtered", type: "filteredRowCount" }, { id: "selected", type: "selectedRowCount" }, ], }} /> </section> </main> );};Props
TableCoreProps
Prop
Type