TableHeader, TableBody, TableRow, TableHead, TableCell, and TableCaption — that map directly to their HTML counterparts.
Basic Usage
A table is composed from nested sub-components that mirror HTML table structure: aTable wraps a TableHeader and a TableBody, each holding TableRows. Inside a row, use TableHead for header labels and TableCell for body data, and add an optional TableCaption to title the whole table. Build the structure with nested with blocks so the indentation matches the table’s shape.
Rich Cell Content
Table cells are containers — they can hold any component, not just text. This makes it easy to add badges, buttons, or other elements inline.API Reference
Table Parameters
Additional Tailwind CSS classes.
TableCaption Parameters
Caption text. Can be passed as a positional argument.
Protocol Reference
Table
TableHead / TableCell
TableCaption