Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Table

Semantic table markup with style-aware headers. Optional sticky header for scroll containers.

DisplayDumb extras
Invoices issued in September 2026.
InvoiceClientStatusAmount
INV-2041Fernhill StudioPaid$1,284.00
INV-2042Kumar & CoDue$312.50
INV-2043Marlow PressPaid$2,045.90
INV-2044Tidepool LabsOverdue$860.00
$ pnpm dlx shadcn@latest add @dumb/table

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@/components/ui/table"
<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Invoice</TableHead>
      <TableHead>Amount</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>...</TableBody>
</Table>

Sticky header

<TableHeader sticky> inside a fixed-height scroll area.

Routep75 LCP
/0.90s
/pricing1.20s
/docs1.50s
/docs/install1.80s
/docs/styles2.10s
/blog2.40s
/blog/three-materials1.00s
/changelog1.30s
/login1.60s
/signup1.90s
/account2.20s
/account/billing2.50s
/account/tokens1.10s
/status1.40s

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

TableHeader

PropTypeDefault
stickyextraboolean

Keeps the header visible while the scroll parent scrolls.

false