Back to Components
Navigation
Accordion
Collapsible sections with smooth height animation and accessible controls.
You get full access to the component source plus updates.
Dependencies
- clsx
- tailwind-merge
- framer-motion
Files
- components/ui/accordion.tsx
Installation
Using shadcn CLI
npx shadcn add accordion --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge framer-motion