UIComponentsReact
A data table with styled rows, header and footer.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/table.jsonIt 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
API reference
Table wraps no headless component of its own: its parts are elements with classes, and their props are the element's.