Skip to content

Table

Tabular data with real semantics: captions, scoped headers, sticky headers, striped rows. The wrapper scrolls on small screens.

Example

Recent invoices
CustomerAmountStatus
Ada Lovelace$1,200Paid
Grace Hopper$850Pending
Alan Turing$2,300Overdue
<Table caption="Recent invoices" striped stickyHeader>
  <TableHead>
    <TableRow>
      <TableCell header scope="col">Customer</TableCell>
    </TableRow>
  </TableHead>
  <TableBody>...</TableBody>
</Table>

Props

PropTypeDefaultDescription
captionstring-Table summary for AT.
striped / hoverbooleanfalseRow treatments.
stickyHeaderbooleanfalsePinned header row.
sizesm | mdmdCell density.
header / scope / align (Cell)--Renders th, sets scope and alignment.

Accessibility