data and columns.Package ↕ | What it is ↕ |
|---|---|
| @dash/server | API, SSR and the JSX factory |
| @dash/client | The browser runtime |
| @dash/ui | Components and themes |
| @dash/data | Collections and the Local API |
<Table
sortable
columns={[{ id: "name", header: "Package", accessor: "name" }, { id: "role", header: "What it is", accessor: "role" }]}
data={[{ name: "@dash/server", role: "API, SSR and the JSX factory" }, { name: "@dash/client", role: "The browser runtime" }, { name: "@dash/ui", role: "Components and themes" }, { name: "@dash/data", role: "Collections and the Local API" }]}
/>import { Table } from "@dash/server";Prop | Type | Description |
|---|---|---|
| data (required) | unknown[] | |
| columns (required) | ColumnDef[] | |
| sortable | boolean | |
| filterable | boolean | |
| pagination | TablePaginationConfig | boolean | |
| emptyMessage | string |
Prop | Type | Description |
|---|---|---|
| id (required) | string | |
| header (required) | string | |
| accessor | string | |
| sortable | boolean | |
| filterable | boolean | |
| width | string | number | |
| align | "left" | "center" | "right" | |
| cell | UINode | ((value: unknown, row: unknown) => React.ReactNode) | Custom cell: a UI node, or a client-side render function. |