← All Components

Table

Semantic HTML table with header, body, footer, and caption. Styled with consistent borders and typography.

Invoice Example

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidCredit Card$450.00
INV005PaidPayPal$550.00
INV006PendingBank Transfer$200.00
INV007UnpaidCredit Card$300.00
Total$2,250.00

Simple Table

NameRoleDepartment
Alice JohnsonEngineerPlatform
Bob SmithDesignerProduct
Carol WilliamsManagerEngineering

Empty State

InvoiceStatusAmount
No results.

Sub-components

Sub-componentTypeDescription
TableRootWrapper with overflow handling and border
Table.HeaderComponentTable header section (thead)
Table.BodyComponentTable body section (tbody)
Table.FooterComponentTable footer section (tfoot)
Table.RowComponentTable row with border and hover styles
Table.HeadComponentHeader cell with bold font
Table.CellComponentStandard data cell
Table.CaptionComponentAccessible caption below the table

Usage

<Table> <Table.Caption>A list of your recent invoices.</Table.Caption> <Table.Header> <Table.Row> <Table.Head>Invoice</Table.Head> <Table.Head>Status</Table.Head> <Table.Head className="text-right">Amount</Table.Head> </Table.Row> </Table.Header> <Table.Body> <Table.Row> <Table.Cell>INV001</Table.Cell> <Table.Cell>Paid</Table.Cell> <Table.Cell className="text-right">$250.00</Table.Cell> </Table.Row> </Table.Body> <Table.Footer> <Table.Row> <Table.Cell colSpan={2}>Total</Table.Cell> <Table.Cell className="text-right">$250.00</Table.Cell> </Table.Row> </Table.Footer> </Table>