Use the parts as you use table elements.
invoices-table.tsx
Table
<table>| Prop | Type | Default | Description |
|---|---|---|---|
| container | — | Props of the scroll box around the table. - aria-label / aria-labelledby: its name while it scrolls. Theirs wins over the caption. The component sets these only while the box scrolls, so a table that fits has no name on a plain div. - className: a height for a table that scrolls inside the box (max-h-96), with a sticky TableHeader. Other props (id, data-*, handlers) pass through. - tabIndex and role belong to the component: it sets them while the box scrolls. | |
| ...props | <table> attributes | — | Every other attribute goes to the <table>, with a ref. |
TableHeader
<thead>| Prop | Type | Default | Description |
|---|---|---|---|
| sticky | boolean | false | Keep the head cells at the top of the scroll box while the body scrolls under them. Give the table a height through containerProps={{ className: "max-h-96" }}. |
| ...props | <thead> attributes | — | Every other attribute goes to the <thead>, with a ref. |
TableBody
<tbody>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <tbody> attributes | — | Every other attribute goes to the <tbody>, with a ref. |
TableFooter
<tfoot>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <tfoot> attributes | — | Every other attribute goes to the <tfoot>, with a ref. |
TableRow
<tr>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <tr> attributes | — | Every other attribute goes to the <tr>, with a ref. |
TableHead
<th>TableCell
<td>TableCaption
<caption>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <caption> attributes | — | Every other attribute goes to the <caption>, with a ref. |
| Left ArroworRight Arrow | Scrolls a wide table when its box has focus. A table that fits adds no tab stop. |
|---|
- Data TablePick Data Table when people sort, filter, select, and page the records.
- FrameA soft tray that groups related panels under one title, with an optional footer bar for help text and the save action. Panels can be links or buttons.
- EmptyWhat a page, a panel, or a list shows when it has no content yet: an icon, a short title and text, and buttons for the next step.
- Data GridPick Data Grid (Pro) for many rows that people edit in cells, with paste, undo, and virtual rows.







