Back to Components
Navigation

Collapsible

Expandable content section with animated open/close transitions.

PropsUsage ExampleVariations

Full access to the component library, regular updates, and email support are included in every plan.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion
  • lucide-react

Files

  • components/ui/collapsible.tsx

Installation

Using shadcn CLI

npx shadcn add collapsible --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge framer-motion lucide-react

Related Navigation Components