Accordion
A vertically stacked set of interactive headings that each reveal a section of content. Supports single or multiple open items.
Default
Single open item with type="single" and collapsible.
Installation
CLI
Also needs
npm i lucide-reactUsage
accordion.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "single" · "multiple" | "single" | Whether one or several items can be open at once. |
| collapsible | boolean | false | When type is single, allows closing the open item. |
| defaultValue | string · string[] | — | Initially open item value(s). |
| disabled | boolean | false | On AccordionItem: disables that item’s trigger. |