Table API
The main table component and column definition types.
Grid and Table
Two entry points are supported:
Grid— Renders a<canvas>and drives the full pipeline (adapter, WASM, canvas renderer). Use this for the standard canvas-based table.Table— Headless table: no canvas, only structure (e.g. for SSR or custom rendering). Accepts the samedata/columns-style props.
All examples below use Grid with object-based columns and data.
Basic usage
Grid props
ColumnDef (object-based columns)
Custom cell rendering (render prop)
Return a RenderInstruction (e.g. text, badge, flex) from the column render (or JSX children). The canvas renderer draws accordingly.
Sorting and filtering
- Sorting: Set
sortable: trueon columns. Click header to cycle none → asc → desc → none. State is internal (ref) so scroll stays fast. - Filtering: Use
columnFilters/onColumnFiltersChange(controlled) orinitialState.columnFilters(uncontrolled). Global filter:globalFilter/onGlobalFilterChange.
Supported instruction types for cells: text, badge, flex, box, stack, sparkline, and stubs (see Canvas components).