DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Base8
AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all8
Columns5
Drag & Drop4
Editing6
Expansion3
  • Sub-Task Tracker
  • Cash Flow Waterfall
  • Release Approvals
Filtering4
Grouping7
Virtualization2

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.

When to use

  • Parent records that open in place to show the child rows or detail cards they hold
  • Rolled up totals, such as a cash or budget line, that drill down to the items behind them
  • Task and approval queues where each item carries its own sub-tasks or checklist

When not to use

  • Rows bucketed by a shared field value, or a tree nested more than one level deep: use the Grouping blocks
  • A finished page of flat records where every row stands alone, with nothing nested: use the Base blocks
  • A table you assemble from the bare parts, where no row opens to reveal more: use the Data Grid component

Agent notes

  • Each page.tsx centers the view in a min-h-svh main capped at max-w-7xl beside an sr-only h1; keep only the view inside your app shell
  • pageSize counts parent rows only, so open children always stay on their parent's page; page your API by parent and return children with it

Third-party API docs

  • TanStack Table v9: API reference, docs, used by 3 of 3 blocks
  • Sonner v2: API reference, docs, used by 2 of 3 blocks
  • date-fns v4: docs, used by 1 of 3 blocks
  • React DayPicker v9: API reference, docs, used by 1 of 3 blocks
Markdownhttps://web.dev.reui.io/blocks/data-grid/expansion.md
MCPsearch({ query: "expansion", type: "block", category: "expansion" })
Full index for agents:llms.txtReUI MCP setup

Shadcn Data Grid Blocks with Expandable Rows and Master Detail Panels

Expansion is the answer to the grid that wants to be two screens: the row stays where it is and the detail opens beneath it. These blocks cover both shapes, sub-rows for hierarchical data and a rich detail panel for a single record, with the chevron, indentation and focus handling done.

The tree variant carries depth on each row, so styling by level and keyboard navigation across levels work the same on Base UI and on Radix.

All Expansion Blocks

Open any block on its own page for a live preview, the components it is built from, and the install command.

  • Sub-Task Tracker Task queue data grid with expandable parent rows that reveal nested sub-tasks inline
  • Cash Flow Waterfall Treasury Waterfall Data Grid with Expandable Lines and Actuals, Plan, Variance Tabs
  • Release Approvals Release Review Data Grid with Expandable Rows Revealing a Checklist Card Rail

What the Expansion blocks cover

Data Grid screens, each a full block with fixture data:

  • Task queue data grid with expandable parent rows that reveal nested sub-tasks inline
  • Treasury Waterfall Data Grid with Expandable Lines and Actuals, Plan, Variance Tabs
  • Release Review Data Grid with Expandable Rows Revealing a Checklist Card Rail

Built from

  • shadcn/ui components Button, Popover, Select, Separator, Avatar, Dropdown Menu, the same components your project already owns.
  • Both twins, every style Each block ships on Base UI and on Radix, in 8 design styles, and names every part it composes on its page.

All Shadcn Block Groups

Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.

  • Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
  • Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
  • Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
  • Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
  • Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
  • Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
  • Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.

Frequently Asked Questions

Can expanded rows load lazily?

Yes. The expansion callback can fetch children on demand; the blocks show the loading row while the request is in flight.

How do I install an Expansion block?

Open the block on its page, copy the install command (the shadcn CLI with the @reui registry and your license key) or the AI prompt, and run it in your project. The block, its fixtures and every ReUI and shadcn dependency land in one command.

Is a license needed?

Expansion blocks are part of ReUI Pro: one payment, lifetime updates, every block in every style. The ReUI primitives and the free examples they build on install with no license.

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. Data Grid
  3. Expansion
DocsMarkdown

Shadcn Data Grid Blocks with Expandable Rows and Master Detail Panels

These 3 blocks open a row in place: nested sub-rows for hierarchies and a detail panel for the record behind a row, without leaving the grid.