Back to components
ComponentTableFree

Expandable Row Table React component

An orders table whose rows open into a detail panel: line items with totals, a Placed → Paid → Shipped → Delivered progress track, the shipping address and notes, sliding open smoothly, with expand all and a compact layout on phones.

About the Expandable Row Table component

Expandable Row Table keeps a long list scannable and puts the detail one click away: each order row opens into a panel with its line items and total, a Placed → Paid → Shipped → Delivered progress track, the shipping address and any notes.

Rows slide open to their natural height, several can be open at once (or one at a time as an accordion), and Expand all opens everything. On phones the row shrinks to customer, total and status, and everything else lives in the panel.

When to use it

Use it for orders, invoices, support tickets, deployments, transactions or any list where each row has more detail than fits on one line.

When people need to compare the hidden details across rows, show them as columns instead.

Installation

Add the Expandable Row Table component to your project with the shadcn CLI. It lands in components/expandable-row-table.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/expandable-row-table

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

Related components

Frozen Columns Table
Free
Spreadsheet Grid
Free
Heatmap Table
Free
Comparison Table
Sparkline Table
Free
Canvas Transition Carousel