Accordion

A series of collapsible panels arranged vertically, each showing content when expanded.

@radix-ui/react-accordion

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/accordion.json

Examples


Icon Position

Icon Style


API Reference

This component is based on Radix UI <Accordion> elements and supports all of their props. And adds:

PropTypeDefault
AccordionTriggericon?: ReactNode, iconPosition?: 'left'<ChevronDown /> Icon by default,'right' Position by default