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

PropTypeDefaultDescription
itemsAccordionItem[][]Array of items with id, title, and content.
multiplebooleanfalseWhether to allow multiple items to be expanded.
classNamestring''Additional container CSS classes.