Component
Table
Primitive table components with consistent border, padding, and hover styles.
Basic table
live editor β edit to update preview
<TableShell> <Table> <TableHead> <Th>Name</Th> <Th>Role</Th> <Th>Status</Th> </TableHead> <TableBody> <TableRow><Td>Alice</Td><Td>Admin</Td><Td>Active</Td></TableRow> <TableRow><Td>Bob</Td><Td>Author</Td><Td>Active</Td></TableRow> <TableRow><Td>Carol</Td><Td>Reviewer</Td><Td>Inactive</Td></TableRow> </TableBody> </Table> </TableShell>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| TableShell | div wrapper | β | Scrollable container with rounded border. Use as the outermost element. |
| Table | table | β | Full-width table element. |
| TableHead | thead + tr | β | Header row with border-bottom and muted text. |
| Th | th | β | Header cell with px-4 py-3 padding. |
| TableBody | tbody | β | Adds divide-y between rows. |
| TableRow | tr | β | Adds hover highlight unless hoverable={false}. |
| Td | td | β | Data cell with px-4 py-3 padding. |