Design-Next

Navigation

Search pages and components

data-table

npx shadcn@latest add @design/data-table

Memoize columns and data with useMemo. Sorting/selection/faceting are built in. Pagination is uncontrolled by default; for URL-synced or server pagination pass controlled pagination + onPaginationChange + pageCount (see the use-url-pagination hook) — then supply only the current page's rows. DataTableColumnHeader gives sortable/hideable headers.

EmailRole
Alice Andersenalice@example.comAdmin
Bob Brennanbob@example.comEditor
Carol Chencarol@example.comViewer
David Diallodavid@example.comMember
Eva Erikssoneva@example.comOwner
Frank Fischerfrank@example.comAdmin
Grace Garciagrace@example.comEditor
Hans Hoffmannhans@example.comViewer
Ingrid Ivanovaingrid@example.comMember
James Johanssonjames@example.comOwner
Page 1 of 3