Uptoolkit
GitHub

Data Table

TanStack Table shell with toolbar, pagination, sortable headers, and column visibility.

Books

Actions
The Left Hand of DarknessUrsula K. Le GuinpublishedYesMay 12, 2025
DuneFrank HerbertpublishedYesMay 10, 2025
The DispossessedUrsula K. Le GuindraftNoApr 28, 2025
NeuromancerWilliam GibsonpublishedYesApr 20, 2025
The Three-Body ProblemLiu CixinarchivedNoMar 18, 2025
FoundationIsaac AsimovpublishedYesMar 1, 2025
Snow CrashNeal StephensondraftNoFeb 14, 2025
The Broken EarthN.K. JemisinpublishedYesJan 30, 2025

Page 1 of 1

Rows

Installation

npx shadcn@latest add https://ui.uptoolkit.com/r/data-table.json

Usage

Composable TanStack Table primitives for CRUD admin UIs.

import { DataTable } from "@/components/ui/data-table";
import { DataTableToolbar } from "@/components/ui/data-table-toolbar";
import { DataTablePagination } from "@/components/ui/data-table-pagination";
import { useCrudDataTable } from "@/hooks/use-crud-data-table";

const { table } = useCrudDataTable({ columns, data });

<>
  <DataTableToolbar table={table} />
  <DataTable table={table} />
  <DataTablePagination table={table} />
</>;

DataTableToolbar includes global search, per-column filters, and a column visibility menu. DataTableColumnHeader adds sort and hide controls to each sortable column.

Install @tanstack/react-table in your app:

npm install @tanstack/react-table