Gallery

Data table

shadcn's data-table recipe on TanStack Table: sorting, columns menu, selection with a bulk bar, row menus, paging.

Preview

Sites
DomainStatusConsent rateActions
Demo PGshop.exampleLive62%47,138
Fence Suppliesthefence.ukLive71%18,320
Northwind Coffeenorthwind.exampleNot on the site yetToo few views0
Atlas Outdooratlas.exampleMeta refuses events58%92,410
Brightside Dentalbrightside.examplePaused64%3,205

Showing 1–5 of 5

Rows per page

Focus rings

Sites
DomainStatusConsent rateActions
Demo PGshop.exampleLive62%47,138
Fence Suppliesthefence.ukLive71%18,320
Northwind Coffeenorthwind.exampleNot on the site yetToo few views0
Atlas Outdooratlas.exampleMeta refuses events58%92,410
Brightside Dentalbrightside.examplePaused64%3,205

Showing 1–5 of 5

Rows per page

In each theme: Default · Trackable · SkillDecks · BetterMarketer

Install

npx shadcn@4.23.0 add https://ui.dobrin-dobrev.co.uk/r/data-table.json

Into an app set up with shadcn init --base radix; the parts it uses come with it.

Files

  • registry/default/blocks/data-table.tsx → components/blocks/data-table.tsx