Data Table

Composable table rendering on top of TanStack Table with focused docs for features, composition, and performance.

DataTable is Cubitt's table renderer on top of TanStack Table. The core component owns layout, row models, and feature flags like sorting, pinning, resizing, pagination, selection, and virtualization.

The surrounding table experience is intentionally composable:

  • Search is composed with useSearch and input primitives.
  • Column visibility is composed with useDataTableColumnVisibility and menu primitives.
  • Filtering is composed with Filters and useFiltersTanstack(...).
  • Bulk actions are usually composed with the SelectionToolbar primitive.
  • Inline edit and component overrides are opt-in extensions on the table itself.

Core

Composition

Extending

Performance

Mental Model

  • Your columns define identity, rendering, sizing, and optional table metadata.
  • DataTable renders the table and wires TanStack row models based on the feature flags you enable.
  • Adjacent hooks own URL state and surrounding UI where that keeps the table API smaller and more reusable.
  • Performance-sensitive features like inline edit and virtualization stay opt-in.

Start with Columns and Table Features, then jump into the composition or performance pages you actually need.

On this page