Table
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
API Reference
Root
Groups the Header and Body parts. This component is based on the table element and supports common margin props.
Header
Contains the column headings for the table, based on the thead element.
Body
Displays the table data. This component is based on the tbody element.
Row
A row of table cells. Based on the tr element.
Cell
A basic table cell. This component is based on the td element, but uses justify instead of align to control how horizontal space is distributed within the table cell.
ColumnHeaderCell
The header of a table column. Based on the th element and provides the same props interface as the Cell part.
RowHeaderCell
The header of a table row. Based on the th element and provides the same props interface as the Cell part.
Examples
Size
Use the size prop to control how large the text and padding of the table cells should be.
With a backplate
Use variant="surface" to add a visually enclosed backplate to the table.