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

PropTypeDefaultDescription
TableShelldiv wrapperβ€”Scrollable container with rounded border. Use as the outermost element.
Tabletableβ€”Full-width table element.
TableHeadthead + trβ€”Header row with border-bottom and muted text.
Ththβ€”Header cell with px-4 py-3 padding.
TableBodytbodyβ€”Adds divide-y between rows.
TableRowtrβ€”Adds hover highlight unless hoverable={false}.
Tdtdβ€”Data cell with px-4 py-3 padding.