Data Table
A semantic read-only table with caption, row headers, and empty state.
| Name | Owner | Status |
|---|---|---|
| Website | Maya | In progress |
| Docs | Eli | Complete |
| API | Sam | Planned |
Installation
npx shadcn@latest add checkfu/uicontext/data-tableUsage
import { DataTable } from "./ui/uicontext/components/DataTable.ts"
DataTable(h, {
rows,
rowKey: (row) => row.id,
empty: "No records yet.",
columns: [{ key: "name", heading: "Name", cell: (row) => row.name }],
})