Join our Discord Community
Tables

👋 This is a community-driven shadcn/ui resource. For the official documentation, visit ui.shadcn.com

Table with Grouped Rows

Grouped table organizing rows into expandable category sections with collapsible headers showing item counts per group

Looking to implement shadcn/ui blocks?

Join our Discord community for help from other developers.


Need to organize table data by categories? This React grouped table arranges rows into collapsible sections with category headers showing item counts. Built with shadcn/ui Table, Badge, and Collapsible components with Lucide React icons, each group header displays the category name, count badge, and chevron that rotates when expanded. Click headers to show/hide groups while maintaining clean visual hierarchy—perfect for inventory systems, product catalogs, or any dataset where grouping by department, status, or type helps users find related items quickly.

Loading preview...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/table-grouped-01.json
npx shadcn@latest add https://www.shadcn.io/registry/table-grouped-01.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/table-grouped-01.json
bunx shadcn@latest add https://www.shadcn.io/registry/table-grouped-01.json

Questions you might have