Table with expandable rowsdata-grid-expandable
Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/data-grid-expandable.jsonData-grid · 3 variants
← → to step through · + on a thumbnail to compare side by side (up to 3)
/preview/data-grid-expandable
Open ↗Default content
{
"eyebrow": "Tallybird · Receivables",
"title": "Invoices",
"description": "Every invoice sent this quarter. Open a row for its lines, payment attempts and notes.",
"actions": [
{
"label": "Export CSV",
"href": "#export",
"variant": "secondary"
},
{
"label": "New invoice",
"href": "#new-invoice",
"variant": "primary"
}
],
"currency": "GBP",
"columns": [
{
"key": "number",
"label": "Invoice",
"kind": "mono"
},
{
"key": "customer",
"label": "Customer",
"kind": "strong"
},
{
"key": "status",
"label": "Status",
"kind": "status"
},
{
"key": "issued",
"label": "Issued",
"kind": "date"
},
{
"key": "due",
"label": "Due",
"kind": "date"
},
{
"key": "amount",
"label": "Amount",
"kind": "money"
}
],
"statuses": [
{
"value": "paid",
"label": "Paid",
"tone": "success"
},
{
"value": "open",
"label": "Open",
"tone": "progress"
},
{
"value": "overdue",
"label": "Overdue",
"tone": "danger"
},
{
"value": "draft",
"label": "Draft",
"tone": "neutral"
},
{
"value": "retrying",
"label": "Retrying",
"tone": "warning"
}
],
"rows": [
{
"id": "inv-2041",
"cells": {
"number": "TB-2041",
"customer": "Ostrelo",
"status": "overdue",
"issued": "2026-09-01",
"due": "2026-09-15",
"amount": 4860
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Scale · annual seats"
},
{
"label": "Billing contact",
"value": "[email protected]"
},
{
"label": "Payment method",
"value": "Bacs Direct Debit"
},
{
"label": "Reminders sent",
"value": "2 of 3"
}
],
"lines": [
{
"description": "Scale plan, 36 seats",
"quantity": 36,
"amount": 4320
},
{
"description": "Usage overage, 18,000 events",
"quantity": 1,
"amount": 540
}
],
"events": [
{
"label": "Final reminder scheduled",
"time": "14 Oct",
"tone": "warning"
},
{
"label": "Direct Debit returned: account closed",
"time": "16 Sep",
"tone": "danger"
},
{
"label": "Invoice sent",
"time": "1 Sep",
"tone": "neutral"
}
],
"note": "Ostrelo moved banks in August. Ask for a new mandate before the final reminder goes out."
}
},
{
"id": "inv-2040",
"cells": {
"number": "TB-2040",
"customer": "Quillon Health",
"status": "paid",
"issued": "2026-09-01",
"due": "2026-09-30",
"amount": 12450
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Enterprise · quarterly"
},
{
"label": "Billing contact",
"value": "[email protected]"
},
{
"label": "Payment method",
"value": "Card ending 4412"
},
{
"label": "Paid on",
"value": "22 Sep"
}
],
"lines": [
{
"description": "Enterprise platform fee, Q4",
"quantity": 1,
"amount": 9000
},
{
"description": "SSO and audit log add-on",
"quantity": 1,
"amount": 1950
},
{
"description": "Priority support",
"quantity": 1,
"amount": 1500
}
],
"events": [
{
"label": "Paid in full",
"time": "22 Sep",
"tone": "success"
},
{
"label": "Invoice viewed",
"time": "3 Sep",
"tone": "neutral"
},
{
"label": "Invoice sent",
"time": "1 Sep",
"tone": "neutral"
}
]
}
},
{
"id": "inv-2039",
"cells": {
"number": "TB-2039",
"customer": "Mosswell",
"status": "retrying",
"issued": "2026-09-28",
"due": "2026-10-05",
"amount": 348
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Team · monthly"
},
{
"label": "Payment method",
"value": "Card ending 0187"
},
{
"label": "Next retry",
"value": "12 Oct, 09:00"
}
],
"lines": [
{
"description": "Team plan, 12 seats",
"quantity": 12,
"amount": 348
}
],
"events": [
{
"label": "Retry 2 of 4 scheduled",
"time": "12 Oct",
"tone": "warning"
},
{
"label": "Card declined: insufficient funds",
"time": "5 Oct",
"tone": "danger"
}
]
}
},
{
"id": "inv-2038",
"cells": {
"number": "TB-2038",
"customer": "Pellora",
"status": "open",
"issued": "2026-09-26",
"due": "2026-10-26",
"amount": 2175
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Scale · monthly"
},
{
"label": "Billing contact",
"value": "[email protected]"
},
{
"label": "Terms",
"value": "Net 30"
}
],
"lines": [
{
"description": "Scale plan, 25 seats",
"quantity": 25,
"amount": 1875
},
{
"description": "Extra workspace",
"quantity": 2,
"amount": 300
}
],
"events": [
{
"label": "Invoice sent",
"time": "26 Sep",
"tone": "neutral"
}
]
}
},
{
"id": "inv-2037",
"cells": {
"number": "TB-2037",
"customer": "Brindlebay Coffee",
"status": "paid",
"issued": "2026-09-20",
"due": "2026-10-04",
"amount": 186
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Starter · monthly"
},
{
"label": "Paid on",
"value": "20 Sep"
}
],
"lines": [
{
"description": "Starter plan, 6 seats",
"quantity": 6,
"amount": 186
}
],
"events": [
{
"label": "Paid automatically",
"time": "20 Sep",
"tone": "success"
}
]
}
},
{
"id": "inv-2036",
"cells": {
"number": "TB-2036",
"customer": "Umberly Outdoor",
"status": "draft",
"issued": "2026-10-09",
"due": "2026-11-08",
"amount": 6720
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Scale · annual"
},
{
"label": "Owner",
"value": "Priya Shah"
}
],
"lines": [
{
"description": "Scale plan, 48 seats",
"quantity": 48,
"amount": 5760
},
{
"description": "Onboarding workshop",
"quantity": 2,
"amount": 960
}
],
"note": "Waiting on the PO number from Umberly's procurement team before sending."
}
},
{
"id": "inv-2035",
"cells": {
"number": "TB-2035",
"customer": "Talvik Robotics",
"status": "paid",
"issued": "2026-09-15",
"due": "2026-10-15",
"amount": 3390
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Scale · monthly"
},
{
"label": "Payment method",
"value": "SEPA Direct Debit"
},
{
"label": "Paid on",
"value": "2 Oct"
}
],
"lines": [
{
"description": "Scale plan, 40 seats",
"quantity": 40,
"amount": 3000
},
{
"description": "Usage overage, 13,000 events",
"quantity": 1,
"amount": 390
}
],
"events": [
{
"label": "Collected by Direct Debit",
"time": "2 Oct",
"tone": "success"
}
]
}
},
{
"id": "inv-2034",
"cells": {
"number": "TB-2034",
"customer": "Zephlo Mobility",
"status": "open",
"issued": "2026-09-12",
"due": "2026-10-12",
"amount": 925
},
"detail": {
"fields": [
{
"label": "Plan",
"value": "Team · monthly"
},
{
"label": "Billing contact",
"value": "[email protected]"
}
],
"lines": [
{
"description": "Team plan, 25 seats + 2 workspaces",
"quantity": 1,
"amount": 925
}
],
"events": [
{
"label": "Reminder sent",
"time": "5 Oct",
"tone": "neutral"
},
{
"label": "Invoice sent",
"time": "12 Sep",
"tone": "neutral"
}
]
}
}
],
"labels": {
"search": "Search invoices",
"searchPlaceholder": "Search customer or invoice number",
"count": "{count} invoices",
"total": "Total",
"empty": "No invoices match that search.",
"expand": "Details for {id}",
"expandAll": "Expand all",
"collapseAll": "Collapse all",
"lineItems": {
"heading": "Line items",
"description": "Item",
"quantity": "Qty",
"amount": "Amount"
},
"activity": "Activity"
}
}