Registry Components
Every DataTable registry item with what it does and how to install it.
A cheat sheet of every item in the niko-table registry. Browse by category, or search this page.
- Every add-on pulls in
data-table-core. That is context, structure, types andlib/data-table-features.ts. It does not includeDataTableRootortable.tsx. - Own the TanStack instance? Any control gives you enough to render a body.
- Want the usual setup? Add
@niko-table/data-table. It depends ondata-table-coreanddata-table-ui.
First time using
@niko-table? Set up the registry once. See the Installation Guide.
The shared base (data-table-core), the optional table primitive (data-table-ui) and the full owner (data-table).
| Name | What it does |
|---|---|
data-table-ui |
Optional components/ui/table.tsx with TableComponent and a keyboard-focusable scroll container (tabIndex={0}). Skip it if you already have a compatible table. |
data-table-core |
Context, non-virtualized structure, types, config, and the lib and hooks that bodies and controls need. No DataTableRoot, no table.tsx. |
data-table |
Full owner on top of core: DataTableRoot, DataTable, toolbar and column chrome, feature detection, scroll and flash hooks. Pulls in data-table-ui for the Table primitive. |
pnpm dlx shadcn@latest add @niko-table/data-tableIf you own the table instance (manual server-driven mode), install controls only. They pull in data-table-core and skip Root and table.tsx, so your customized Shadcn table is safe:
pnpm dlx shadcn@latest add @niko-table/data-table-pagination @niko-table/data-table-search-filter @niko-table/data-table-faceted-filter @niko-table/data-table-clear-filter @niko-table/data-table-column-sortWant our table primitive without the full owner?
pnpm dlx shadcn@latest add @niko-table/data-table-uiVirtualization
Section titled “Virtualization”For large datasets (100,000+ rows).
| Name | What it does |
|---|---|
data-table-virtualized |
Virtualized body and header for large datasets, using TanStack Virtual. |
pnpm dlx shadcn@latest add @niko-table/data-table-virtualizedToolbar Filters
Section titled “Toolbar Filters”Filter controls above the table. Each one is independent. Install only what you need.
| Name | What it does |
|---|---|
data-table-search-filter |
Global search input with debounce. |
data-table-pagination |
Page-size picker, page navigation and row count. |
data-table-sort-menu |
Multi-column sorting, with drag-to-reorder of sort entries. |
data-table-view-menu |
Menu to show or hide columns. Optional lockedColumnIds and onReset. |
data-table-view-dnd-menu |
Column visibility menu with drag-to-reorder. Use it instead of data-table-view-menu to let users reorder columns from the menu. Pulls in @dnd-kit/*. |
data-table-filter-menu |
Command-palette-style menu to add and manage column filters. |
data-table-inline-filter |
Inline toolbar that shows active filters as editable chips. |
data-table-faceted-filter |
Faceted filter (single or multi select) with option counts and search. |
data-table-slider-filter |
Slider filter for a number range. |
data-table-date-filter |
Date picker filter for a single date or a date range. |
data-table-clear-filter |
Button that clears all active filters. |
pnpm dlx shadcn@latest add @niko-table/data-table-search-filter @niko-table/data-table-pagination @niko-table/data-table-view-menuColumn-Header Controls
Section titled “Column-Header Controls”Per-column controls in the column header dropdown.
| Name | What it does |
|---|---|
data-table-column-sort |
Header sort option: asc, desc or clear. |
data-table-column-hide |
Header option to hide or show the column. |
data-table-column-pin |
Header option to pin the column left or right. |
data-table-column-group |
Header Group by and Stop grouping by. Groups flat rows into buckets with aggregations (not tree getSubRows). |
data-table-column-resize |
Column resize handle. Double-click to autosize. Flex fill and header-fit are on by default once resizing is on. |
data-table-column-auto-fit |
Opt-in <DataTableColumnAutoFit /> marker. Splits leftover width evenly across resizable columns (instead of single-column flex fill). |
data-table-column-sizing-persistence |
useColumnSizingPersistence(storageKey) hook. Saves resized widths to localStorage. |
data-table-column-faceted-filter |
Header faceted filter with multi-select options. |
data-table-column-slider-filter |
Header slider filter for a number range. |
data-table-column-date-filter |
Header date filter with calendar picker. |
pnpm dlx shadcn@latest add @niko-table/data-table-column-sort @niko-table/data-table-column-hide @niko-table/data-table-column-pin @niko-table/data-table-column-group @niko-table/data-table-column-resize @niko-table/data-table-column-auto-fit @niko-table/data-table-column-sizing-persistenceDrag and Drop
Section titled “Drag and Drop”Reorder rows and columns. Pulls in @dnd-kit/*.
| Name | What it does |
|---|---|
data-table-row-dnd |
Row drag-and-drop (provider, drag handle, DataTableDndBody). Does not ship column DnD. |
data-table-column-dnd |
Column drag-and-drop (provider, header, DataTableDndColumnBody). Does not ship row DnD. |
data-table-virtualized-row-dnd |
Virtualized row DnD body. Depends on data-table-virtualized + data-table-row-dnd. |
data-table-virtualized-column-dnd |
Virtualized column DnD header/body. Depends on data-table-virtualized + data-table-column-dnd. |
pnpm dlx shadcn@latest add @niko-table/data-table-row-dnd @niko-table/data-table-column-dnd @niko-table/data-table-virtualized-row-dnd @niko-table/data-table-virtualized-column-dndDo not combine Row DnD with sorting or filtering. The data order conflicts. Column DnD is safe with any feature.
Auxiliary
Section titled “Auxiliary”Extra UI that goes with the table.
| Name | What it does |
|---|---|
data-table-export-button |
Export current rows to CSV. You choose the columns. |
data-table-aside |
Side panel for row details or other content next to the table. |
data-table-selection-bar |
Bulk-actions bar that shows when rows are selected. |
pnpm dlx shadcn@latest add @niko-table/data-table-export-button @niko-table/data-table-aside @niko-table/data-table-selection-barNiko Grid
Section titled “Niko Grid”Editable spreadsheet layer on the virtualized table. See the Niko Grid docs.
| Name | What it does |
|---|---|
data-table-grid |
Niko Grid core: keyboard navigation, clipboard, fill and typed cells. Pulls in virtualization and column resize. |
data-table-grid-changes |
Optional change tracking (useGridChanges) to save creates, updates and deletes. |
pnpm dlx shadcn@latest add @niko-table/data-table-gridPicking a starting point
Section titled “Picking a starting point”Not sure where to start? Pick the example closest to what you are building and copy its install line:
- Basic Table - search, pagination and view menu
- Faceted Filter Table - faceted, slider and date filters
- Advanced Table - filter menu, sort menu and export
- Virtualization Table - 100,000+ rows
- Column DnD Table - column reorder and DnD view menu
- Row DnD Table - row reorder
- Niko Grid - editable spreadsheet
- Tree Table - nested data (
getSubRows) - Grouping Table - group flat rows by column values
- Row Expansion Table - inline detail panels
- Inline Edit Table -
getRowMemoKeypattern
Each example page lists the registry items it uses.
To install every item in one command, see Install Everything. The CLI does not support @niko-table/**.