Docs / Components / Accordion
Accordion
Accordion component with smooth animations
Installation
Run the following command in your terminal to add the component to your project:
1npx rankflow-ui@latest add accordion
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AccordionItem[] | DEFAULT_ITEMS | Array of accordion items, each with id, question, and answer fields. |
| allowMultiple | boolean | false | Whether multiple accordion items can be open at the same time. |
| className | string | '' | Additional CSS classes for the accordion wrapper. |