Components
Table
Responsive data table for lists, comparisons, and structured records.
Composition
Anatomy
- <Table>
- <TableCaption />
- <TableHeader>
- <TableRow>
- <TableHead />
- <TableRow>
- <TableBody>
- <TableRow>
- <TableCell />
- <TableRow>
- <TableFooter>
- <TableRow>
- <TableCell />
- <TableRow>
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/table.tsx.
Dependencies
Raw code
Primary installed source
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-table-* · 7 knobsHow the cascade resolves--cui-table-background<color>transparent--cui-table-foreground<color>var(--foreground)--cui-table-border-color<color>var(--border)--cui-table-row-hover-background<color>oklch(from var(--foreground) l c h / 0.03)--cui-table-row-selected-background<color>oklch(from var(--foreground) l c h / 0.05)--cui-table-header-foreground<color>var(--muted-foreground)--cui-table-footer-background<color>oklch(from var(--foreground) l c h / 0.03)