Table

Table primitives for header, body, footer, row, head, cell and caption, wrapped in a horizontal scroll container. Same API as the shadcn Table, in Tailwind.

src/registry/ui/table.tsx/r/table.json

Installation#

bash
npx shadcn@latest add @minidev/table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/table.json

Usage#

tsx
import { Table } from "@/components/ui/table"

export function Example() {
  return <Table />
}

API reference#

Also accepts every prop of <table>, passed through to the root element.

All data table components

Learn more