Install with shadcn CLI
The React DataTable ships as a shadcn registry block from github.com/izetmolla/datatable.
Prerequisites
- A React project with shadcn/ui initialized (
components.json) - React Query + nuqs providers (see React installation)
Option A — Raw URL (v1)
Install the versioned item JSON directly:
bunx shadcn@latest add https://raw.githubusercontent.com/izetmolla/datatable/main/registry/v1.json
npm:
npx shadcn@latest add https://raw.githubusercontent.com/izetmolla/datatable/main/registry/v1.json
This writes files under your configured components alias (typically src/components/datatable).
Option B — GitHub registry address
bunx shadcn@latest add izetmolla/datatable/datatable
Pin a branch/tag/commit:
bunx shadcn@latest add izetmolla/datatable/datatable#main
bunx shadcn@latest add izetmolla/datatable/datatable#v1.0.0
Inspect before installing
bunx shadcn@latest view https://raw.githubusercontent.com/izetmolla/datatable/main/registry/v1.json
bunx shadcn@latest add https://raw.githubusercontent.com/izetmolla/datatable/main/registry/v1.json --dry-run
List the GitHub catalog:
bunx shadcn@latest list izetmolla/datatable
bunx shadcn@latest search izetmolla/datatable --query table
What gets installed
- Full DataTable package →
@components/datatable/** - npm deps:
@tanstack/react-table,@tanstack/react-query,nuqs,motion, … - shadcn UI deps:
table,checkbox,command,input, …
After install
import { DataTable, useBackendColumns, setDatatableFetcher } from "@/components/datatable";
If async filter URLs need your authenticated API client:
setDatatableFetcher(({ url, method, params }) =>
ApiService.fetchData({ url, method: method ?? "get", params }),
);
Continue with Quick start or Use cases.