Data Table

A semantic read-only table with caption, row headers, and empty state.

Preview
Projects
NameOwnerStatus
WebsiteMayaIn progress
DocsEliComplete
APISamPlanned

Installation

npx shadcn@latest add checkfu/uicontext/data-table

Usage

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 }],
})

Source