Skip to content
Eskais UI

Data

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

Three tasks this week.
TaskOwnerStatus
Draft the release notes for every package in the workspaceAdaIn progress
Review the agent approval flowGraceDone
Audit contrast in the glass themeLinusIn progress

Installation

npx shadcn@latest add @eskais/table
Brings alongscroll-area

Usage

Import
import {  Table,  TableBody,  TableCaption,  TableCell,  TableFooter,  TableHead,  TableHeader,  TableRow,} from "@/components/ui/table"

API reference

Table

PropTypeDefault
containerClassNamestring–

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

PropTypeDefault
wrapWraps long text onto more lines instead of cutting it at `max-w-80` with an ellipsis.booleanfalse

Also takes <td> attributes and render.

TableCaption

Takes <caption> attributes and render.

Other exports

type TableCellPropstype TableProps

Accessibility

  • 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.