# Shadcn Data Table Components

Powerful table and datagrids built using TanStack Table. All table examples coexist cleanly with Radix UI and Base UI components.

- Page: https://shadcnuikit.com/components/data-table
- Variants: 6 (6 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Variant 1](https://shadcnuikit.com/components/data-table/1) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table1`)
- [Table with expandable rows](https://shadcnuikit.com/components/data-table/2) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table2`)
- [With vertical scroll](https://shadcnuikit.com/components/data-table/3) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table3`)
- [Draggable rows](https://shadcnuikit.com/components/data-table/4) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table4`)
- [Draggable columns](https://shadcnuikit.com/components/data-table/5) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table5`)
- [With action buttons](https://shadcnuikit.com/components/data-table/6) (Free, install: `npx shadcn@latest add @shadcnuikit/data-table6`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)