Skip to content
Components / Collections

Table

A data table with a caption and column headers.

@fabrials/ui
Loading state
Synthetic accounts
AccountStatus
NorthCurrent
SouthStale

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { Table, TableHeader, TableBody, TableRow, TableHead, TableCell } from "@fabrials/ui";
  2. Or install it under shadcn's name, so code that imports @/components/ui/table gets this control. See shims.

    npx shadcn@latest add @fabrials/table

API reference

Prop / exportTypeDescription
childrenReactNodeCaption, header and body.

Behavior

The table scrolls inside its region. The page itself does not scroll sideways.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.