Components › Display
Table
Ruled data table parts with selectable rows and a sortable header button.
Installation
npx plankui@latest add tableUsage
import { Table } from "@/components/ui/table";
<Table>
<TableHeader><TableRow><TableHead>Name</TableHead></TableRow></TableHeader>
<TableBody><TableRow><TableCell>Ana</TableCell></TableRow></TableBody>
</Table>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| TableRow data-state | "selected" | Highlights a selected row. | |
| TableSortButton.direction | "asc" | "desc" | false | Current sort. | |
| ...props | native table element props | Every part forwards them. |