Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Table

A data table with styled rows, header and footer.

Rendered by React 19.3.1

table.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/table.json

It also adds utils. The app needs its setup first: Installation.

Usage

Table wraps the table in a container that scrolls sideways when the table is wider than its space. Its parts are the table elements with classes: TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell and TableCaption.

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

Examples

Default

Rows with a header and a caption.

Its preview and code are at the top of the page.

API reference

Table wraps no headless component of its own: its parts are elements with classes, and their props are the element's.