Data table

An advanced table for displaying and managing large datasets with interactive controls.

@tanstack/react-table lucide-react

Installation


1

Install the following dependencies:

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

Examples


Checkbox

Sorting

Filter

Pagination

Size

Grid line and Striped row


API Reference

PropTypeDefault
columnsColumnDef<TData, TValue>[]-
dataTData[]-
headerReact.ReactNode-
footerReact.ReactNode-
sizesmall,normal,largenormal
selectablebooleanfalse
selectAllbooleanfalse
showGridLinesbooleanfalse
stripedRowsbooleanfalse
paginationbooleanfalse
pageSizenumber5
globalFilteringbooleanfalse