Table
Basic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { Table } from "@corew500/ui/table"
<Table>Content</Table>Data Table
Full-featured data table with sorting, filtering, and pagination.Loading...
CMS Integration
Loading...
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| containerProps | DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> | — | Props forwarded to the wrapper `<div>` that provides scrolling and the `region` landmark. Use this to override the default `role`, `aria-label`, `tabIndex`, or `className` on the container. @example Override the accessible label ```tsx <Table containerProps={{ "aria-label": "Invoice history" }}>…</Table> ``` |
Accessibility
Keyboard Navigation
- - Uses semantic table, thead, tbody, th, td elements
- TableCaption provides accessible table description
- TableHead uses th for header cell semantics
Additional
- Selected rows indicated via data-state="selected"
Localization
Translatable Content
- - Pass translated strings to TableHead and TableCell content
Additional
- TableCaption should contain localized description