Skip to main content

React installation

From any shadcn-enabled app:

bunx shadcn@latest add https://raw.githubusercontent.com/izetmolla/datatable/main/registry/v1.json

Or:

bunx shadcn@latest add izetmolla/datatable/datatable

Full guide: Install with shadcn CLI.

Monorepo / Admin Console​

Source of truth in Flowtrove:

backend/apps/admin-console/frontend/src/components/datatable

Published copy for the GitHub registry:

backend/pkg/datatable/ui/datatable
import {
DataTable,
useBackendColumns,
useServerTableData,
setDatatableFetcher,
type BackendColumnsResponse,
} from "@/components/datatable";

Peer stack​

LibraryRole
@tanstack/react-tableTable model
@tanstack/react-queryServer list fetching
nuqsURL query state
shadcn UItable, checkbox, inputs, popovers, …

Providers​

  1. React Query QueryClientProvider
  2. nuqs adapter for your router

Optional: setDatatableFetcher for authenticated async filter requests.