Table

Styled table primitives for structured data.

Quick Preview

BuyerStatusBudget
Ada OkaforApproved₦85m
Nnamdi KaluReview₦64m

Composition

Use this public composition when building Table:

Table
├── TableHeader
│   └── TableRow
│       └── TableHead
└── TableBody
    └── TableRow
        └── TableCell

Usage

<Table><TableHeader><TableRow><TableHead>Name</TableHead></TableRow></TableHeader><TableBody><TableRow><TableCell>Ada</TableCell></TableRow></TableBody></Table>

Examples

Default Table

Use this as the starting point for Table. Keep product data, routing, fetching, and authorization logic in the consuming app.

BuyerStatusBudget
Ada OkaforApproved₦85m
Nnamdi KaluReview₦64m

Lengthy Text

Columns keep whatever width you give them (here via table-fixed and per-column widths). Cells wrap long content within that width instead of overflowing into the next column, so nothing overlaps. Truncation is left to you — add truncate to a cell's own content when you want a single line with an ellipsis, as the Estate column does below.

Address (wraps)PriceEstate (truncated)
No 5A Beta Glass Road, Ohaukwu₦100,000,000Delta State
Wisdom Estate, Behind BG Musa Station, Nasarawa State, Central Business District₦75,000,000Nasarawa State, Central Business District
No 23 Joseph Waku Street, Asokoro₦78,000,000Asokoro

Props

Prop/APITypeDefaultDescription
containerClassNamestring-Styles the scroll container around the table.
sticky on TableHeaderbooleanfalsePins the header while scrolling.
pinned on TableCellbooleanfalseKeeps a cell sticky with opaque background.
classNamestring-Local layout or spacing overrides.
native/root propsReact component props-Passed through to the underlying root or primitive.

Accessibility

  • Preserve the documented Table composition so labels, triggers, content, and controls remain connected.
  • Provide visible labels or accessible names for interactive controls.
  • Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
  • Do not communicate state with color alone; include text, icons, or helper copy.

On this page