Table
Displays data in rows and columns with semantic HTML and support for headers, bodies, and footers.
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV-001 | Paid | Credit Card | $250.00 |
| INV-002 | Pending | Bank Transfer | $150.00 |
| INV-003 | Unpaid | PayPal | $350.00 |
| Total | $750.00 | ||
Installation
Bash
Usage
API reference
Table
Extends the native <table> element, wrapped in an overflow container
(data-slot="table-container") so wide tables scroll horizontally
instead of breaking the page.
TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption
Extend their semantic HTML counterparts (thead, tbody, tfoot,
tr, th, td, caption) — no props beyond them. Rows highlight on
hover and style themselves via data-state="selected" or an expanded
child; cells with a leading checkbox drop their right padding
automatically.