Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { TableRowExpander, useRowExpansion } from "@/components/ui/table-row-expander"const orders = [ { id: "1042", customer: "Olivia Martin", total: "$84.00", items: ["Wireless mouse x1", "USB-C cable x2"] }, { id: "1043", customer: "Liam Johnson", total: "$129.50", items: ["Mechanical keyboard x1"] }, { id: "1044", customer: "Noah Brown", total: "$42.00", items: ["Desk lamp x1", "Notebook x3"] },]export default function TableRowExpanderDemo() { const rows = useRowExpansion({ defaultExpandedIds: ["1042"], multiple: false }) return ( <div className="w-full max-w-lg overflow-hidden rounded-md border"> <table className="w-full text-sm"> <thead className="bg-muted/50 text-left"> <tr> <th className="w-8 p-2" /> <th className="p-2 font-medium">Order</th> <th className="p-2 font-medium">Customer</th> <th className="p-2 text-right font-medium">Total</th> </tr> </thead> {orders.map((order) => ( <TableRowExpander key={order.id} label={`order ${order.id}`} expanded={rows.isExpanded(order.id)} onExpandedChange={() => rows.toggle(order.id)} detail={ <ul className="list-disc pl-5"> {order.items.map((item) => ( <li key={item}>{item}</li> ))} </ul> } > <td className="p-2">{order.id}</td> <td className="p-2">{order.customer}</td> <td className="p-2 text-right">{order.total}</td> </TableRowExpander> ))} </table> </div> )}