Docs / Components / Spring Accordion
Spring Accordion
A modern accordion component with fluid spring height animations and no leading icons.
Dependencies
Install the following dependencies to use this component:
1npm install motion lucide-react clsx tailwind-merge
Installation
Run the following command in your terminal to add the component to your project:
1npx rankflow-ui@latest add spring-accordion
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AccordionItem[] | [] | Array of items with id, title, and content. |
| multiple | boolean | false | Whether to allow multiple items to be expanded. |
| className | string | '' | Additional container CSS classes. |