Skip to content
Components

Table

Responsive data table for lists, comparisons, and structured records.

Composition

Anatomy

  • <Table>
    • <TableCaption />
    • <TableHeader>
      • <TableRow>
        • <TableHead />
        </TableRow>
      </TableHeader>
    • <TableBody>
      • <TableRow>
        • <TableCell />
        </TableRow>
      </TableBody>
    • <TableFooter>
      • <TableRow>
        • <TableCell />
        </TableRow>
      </TableFooter>
    </Table>

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/table.tsx.

Registry command
See registry manifest

Dependencies

Raw code

Primary installed source

src/registry/sources/control-ui/ui/table.tsx

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)