Search...

Search documentation...

Table

Table

A plain, styled <table> — static markup, no sorting/filtering/pagination logic. For that, see DataTable.

import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell, TableCaption } from "@pompeitech/vesuvius-ui";

Default

A list of your recent invoices.
InvoiceStatusAmount
INV001Paid$250.00
INV002Pending$150.00

API

ComponentRendersNotes
Table<table>Wraps itself in an overflow-x-auto scroll container automatically — no manual wrapper needed for a table wider than its column.
TableHeader<thead>
TableBody<tbody>
TableFooter<tfoot>Styled with a subtle background to distinguish it from TableBody.
TableRow<tr>Gets a hover background and bottom border automatically.
TableHead<th>
TableCell<td>
TableCaption<caption>Rendered below the table by default, muted text.

All accept every native prop of their underlying element, plus className.

Accessibility

A real semantic <table> — TableHead/TableCaption give screen readers the structure they need for free. Use TableCaption (rather than an adjacent <h2>/<p>) to describe the table's purpose, since it's programmatically associated with the table itself.