Atelier UI

Search components…

Search components…

Data Table

Data table with search, column sorting, row selection, pagination and custom cells.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DataTableProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
searchablebooleantrue—
searchPlaceholderstring"Search…"—
selectablebooleantrue—
pageSizenumber5Rows per page; 0 disables pagination
stripedbooleanfalse—
densebooleanfalse—
emptyTextstring"No results."—
toolbarReact.ReactNode—Rendered next to the search box, e.g. bulk actions

Install

$ npx shadcn@latest add https://chromotion.dev/r/data-table.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this