Data Table 12 - Density togglePro
Repository table with a segmented compact, default and comfortable control that changes row height and cell padding on the fly.
About Data Table 12
Repository table with a segmented compact, default and comfortable control that changes row height and cell padding on the fly.
Data Table 12 is a pro data table block for React, built on shadcn/ui and Tailwind CSS. It ships as 108 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- table
- density
- segmented
- compact
- repositories
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/data-table-12Dependencies installed automatically: lucide-react.
Uses: reveal, table, utils.
Usage
import DataTable12 from "@/components/blocks/data-table-12"
export default function Page() {
return <DataTable12 />
}