Table Examples
Live previews of every Niko Table example. Pick one to see its code and install command.
Every example below is the real table running live. Open one to see the full demo, its code and the install command. Looking for the spreadsheet-style editor? See Grid Examples.
Getting Started
Section titled “Getting Started”- Simple TableA basic data table with no pagination, for small datasets.
- Basic TableA table with pagination, sorting and show/hide columns.
- Search TableAdd one search box that finds data across all columns.
Row & Column Features
Section titled “Row & Column Features”- Row Selection TableAdd checkbox row selection for bulk actions.
- Row Expansion TableAdd expandable rows that show more details inline.
- Row Context Menu TableOne row menu that powers both the "..." dropdown and the right-click context menu.
- Inline Edit TableEdit rows in place, and keep memoized rows re-rendering correctly with getRowMemoKey.
- Column Pinning TablePin columns to the left or right edge so they stay visible while scrolling.
- Grouping TableGroup rows by column value, expand and collapse groups, and roll up sums and counts.
- Column Resize TableLet users drag column edges to resize, or double-click to fit the content.
- Tree TableShow hierarchical data with expandable parent and child rows.
Drag & Drop
Section titled “Drag & Drop”- Row DnD TableReorder rows by dragging, using composable pieces.
- Column DnD TableLet users drag column headers to reorder columns.
Layout & Presentation
Section titled “Layout & Presentation”- Aside TableAdd side panels next to your table for filters, details or stats.
- Virtualization TableVirtual scrolling for 100,000+ React table rows with @tanstack/react-virtual. Swap DataTableBody for DataTableVirtualizedBody in your shadcn data table.
- Infinite Scroll TableLoad more rows as the user scrolls. Good for tables backed by a paginated API.
- Infinite Scroll Virtualized TableCombine virtual scrolling with infinite loading to handle large paginated datasets without a heavy DOM.
Filtering
Section titled “Filtering”- Faceted Filter TableInline filter chips that show each option and how many rows match.
- Advanced Filter TableRule-based filtering where users stack their own filter and sort rules.
- Advanced Inline Filter TablePut filter inputs right in the table toolbar instead of behind a menu.
Server-Side & URL State
Section titled “Server-Side & URL State”- Advanced Nuqs TableRule-based filtering with table state kept in the URL, so views can be shared and bookmarked.
- Server-Side TableServer-side pagination, sorting, and filtering behind a database-agnostic query contract, with TanStack Query for fetching and caching.
- Server-Side Nuqs TableServer-side pagination, sorting, and filtering, with the whole table state kept in the URL by nuqs.
- Drizzle ORMTurn table filters, sorting, pagination and facets into real SQL with Drizzle ORM and Postgres.
- Drizzle ORM + NuqsThe Drizzle ORM server-side table with its state kept in the URL via nuqs, so views can be shared and bookmarked.