# Shadcn Accordion Components

A vertically stacked set of interactive headings that each reveal a section of content. Each accordion variant is fully compatible with both Radix UI and Base UI primitives.

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

- [Basic](https://shadcnuikit.com/components/accordion/1) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion1`)
- [Plus icon](https://shadcnuikit.com/components/accordion/2) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion2`)
- [Icon on the left](https://shadcnuikit.com/components/accordion/3) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion3`)
- [Plus icon](https://shadcnuikit.com/components/accordion/4) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion4`)
- [Variant 5](https://shadcnuikit.com/components/accordion/5) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion5`)
- [With subtext](https://shadcnuikit.com/components/accordion/6) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion6`)
- [With subtext with icon](https://shadcnuikit.com/components/accordion/7) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion7`)
- [Stacked](https://shadcnuikit.com/components/accordion/8) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion8`)
- [Stacked left icon](https://shadcnuikit.com/components/accordion/9) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion9`)
- [Bordered](https://shadcnuikit.com/components/accordion/10) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion10`)
- [Multiple items](https://shadcnuikit.com/components/accordion/11) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion11`)
- [Active state](https://shadcnuikit.com/components/accordion/12) (Free, install: `npx shadcn@latest add @shadcnuikit/accordion12`)

## 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)