Skip to content
Niko Table

Shadcn-Compatible React Data Table

Composable, accessible data tables with thoughtful defaults. Sorting, filters, virtualization and more, in code you copy, customize and own.
npx shadcn@latest add @niko-table/data-table
Product Name
Category
Brand
Price
Stock
Rating
In Stock
Release Date
iPhone 15 ProElectronicsapple
$999.00
45
5★
Yes7/10/2026
Galaxy S24 UltraElectronicssamsung
$1199.00
32
5★
Yes7/5/2026
Air Jordan 1Sportsnike
$170.00
8
4★
Yes6/20/2026
Ultraboost 23Sportsadidas
$190.00
15
4★
Yes5/26/2026
PlayStation 5Electronicssony
$499.00
0
5★
No7/15/2025
OLED C3 TVElectronicslg
$1499.00
12
5★
Yes4/16/2026
XPS 15 LaptopElectronicsdell
$1899.00
20
4★
Yes3/17/2026
Spectre x360Electronicshp
$1599.00
18
4★
Yes6/30/2026
MacBook Pro 16Electronicsapple
$2499.00
25
5★
Yes6/15/2026
Galaxy Book3Electronicssamsung
$1399.00
14
4★
Yes1/16/2026

Search, column filters, sorting, a column view menu and pagination, composed from small pieces.

All table examples

Nobody’s table, everyone’s solution.

This is not an npm package. The CLI copies the DataTable source into your project, so you own it. It is built with TanStack Table and shadcn/ui.

Add the registry once under registries in components.json, then install:

components.json
{
"registries": {
"@niko-table": "https://niko-table.com/r/{style}/{name}.json"
}
}
pnpm dlx shadcn@latest add @niko-table/data-table

Works with Radix UI, Base UI and React Aria. Like shadcn/ui, the CLI installs the version that matches your project.

See Installation to add it to an existing components.json.

  • Introduction - The editable spreadsheet grid
  • Cell Types - Text, number, currency, checkbox, date and select editors
  • Validation - Per-cell errors with Zod (or any resolve)
  • Dynamic Columns - Add, rename, move, delete and retype columns at runtime
  • Persistence - Track creates, updates and deletes with useGridChanges
  • API Reference - Every hook, component and type
  • Type-safe - Full TypeScript support
  • Accessible - Built on shadcn/ui primitives (Radix or Base UI). Filters and menus have ARIA labels and keyboard shortcuts. Code is linted with jsx-a11y.
  • Responsive - Full-width scroll container (overflow-auto) and touch-friendly controls. Stack toolbars on small screens as needed.
  • Customizable - You own the source code
  • Composable - Mix and match DataTable* components. Install only the pieces you need. TanStack Table v9 works the same way: register only the features you use in lib/data-table-features.ts.
  • Built from shadcn/ui - Every component reuses the shadcn/ui components already in your project (Button, Popover, Command, Dropdown Menu and more), so tables match your theme with no extra styling.
  • Performance - Virtual scrolling keeps hundreds of thousands of client-side rows smooth. The Niko Grid stress test loads 500,000 rows in the browser.
  • State Management - useDataTable() reads state from context. State can be controlled, and can sync to the URL with nuqs.

Questions or want to help?

MIT License. Use it in your projects.