Table
Display tabular data using composable table primitives.
Examples
Default
<c-table>
<c-table-caption>A list of your recent invoices.</c-table-caption>
<c-table-header>
<c-table-row>
<c-table-head>Invoice</c-table-head>
<c-table-head>Status</c-table-head>
<c-table-head>Method</c-table-head>
<c-table-head table-head-classes="text-end">Amount</c-table-head>
</c-table-row>
</c-table-header>
<c-table-body>
<c-table-row>
<c-table-cell table-cell-classes="font-medium">INV001</c-table-cell>
<c-table-cell>Paid</c-table-cell>
<c-table-cell>Credit Card</c-table-cell>
<c-table-cell table-cell-classes="text-end">$250.00</c-table-cell>
</c-table-row>
</c-table-body>
</c-table>
With Footer
<c-table>
<c-table-footer>
<c-table-row>
<c-table-cell table-cell-classes="font-medium">Total</c-table-cell>
<c-table-cell></c-table-cell>
<c-table-cell table-cell-classes="text-end">$250.00</c-table-cell>
</c-table-row>
</c-table-footer>
</c-table>
API Reference
Table
Composed table primitives for presenting tabular data.
Accessibility
- Uses structured table primitives with header/data cells and caption support.
- Preserves keyboard-safe, readable row/section grouping for tabular content.
- Supports
data-state="selected"styling hooks on rows.