Table
Semantic table parts with aria-sort-ready headers and a horizontal scroll area on narrow screens. Cells stay on one line, cut with an ellipsis and a title holding the whole text while they overflow; TableCell wrap lets one wrap.
Example
| Task | Owner | Status |
|---|---|---|
| Draft the release notes for every package in the workspace | Ada | In progress |
| Review the agent approval flow | Grace | Done |
| Audit contrast in the glass theme | Linus | In progress |
table-demo.tsxCopy code
Installation
Copy code
Brings alongscroll-area
Usage
ImportCopy code
API reference
Table
| Prop | Type | Default |
|---|---|---|
containerClassName | string | – |
Also takes <table> attributes and render.
TableHeader
Takes <thead> attributes and render.
TableBody
Takes <tbody> attributes and render.
TableFooter
Takes <tfoot> attributes and render.
TableRow
Takes <tr> attributes and render.
TableHead
Takes <th> attributes and render.
TableCell
| Prop | Type | Default |
|---|---|---|
wrapWraps long text onto more lines instead of cutting it at `max-w-80` with an ellipsis. | boolean | false |
Also takes <td> attributes and render.
TableCaption
Takes <caption> attributes and render.
Other exports
type TableCellPropstype TablePropsAccessibility
- Semantic table parts; headers take aria-sort; truncated cells keep their full text in title.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.