Rows and columns with sorting, selection and an empty state.
| Status | ||||
|---|---|---|---|---|
| INV-001 | Acme Corp | Paid | $250.00 | |
| INV-002 | Globex | Pending | $1,500.00 | |
| INV-003 | Initech | Overdue | $350.00 | |
| INV-004 | Umbrella | Paid | $450.00 | |
| INV-005 | Hooli | Pending | $550.00 |
Installation
pnpm add krz-uiUsage
import { Table } from "krz-ui";<Table
data={invoices}
rowKey={(row) => row.id}
selectable
columns={[
{ key: "id", header: "Invoice", sortable: true },
{ key: "status", header: "Status", cell: (row) => <Badge>{row.status}</Badge> },
{ key: "amount", header: "Amount", sortable: true, align: "right" },
]}
/>