Table
A config-first styled semantic table. A columns schema and a rows array render one real table with per-column alignment, an optional caption, and an empty state.
| Invoice | Client | Status | Amount |
|---|---|---|---|
| INV-1042 | Acme Inc. | Paid | $1,200.00 |
| INV-1043 | Globex | Pending | $980.00 |
| INV-1044 | Initech | Paid | $3,450.00 |
| INV-1045 | Umbrella Co. | Overdue | $540.00 |
| INV-1046 | Soylent | Draft | $120.00 |
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece table
This is the presentational tier, not a data grid. Sorting, selection, and virtualization are out of scope by design — own that state in the parent and feed sorted or paged rows in.
Usage
import Table from '@/components/ui/Table.pzl';
<Table columns={ columns } rows={ rows } caption="Invoices billed this quarter" />Alignment
| Item | Qty | Price |
|---|---|---|
| Enamel pin | 3 | $18.00 |
| Sticker sheet | 12 | $6.00 |
| Tote bag | 1 | $24.00 |
Empty state
| Invoice | Client | Status | Amount |
|---|---|---|---|
| No invoices this quarter. | |||