Docs / Components / Stack Deck Accordion
Stack Deck Accordion
An overlapping card-deck accordion where collapsed rows shrink to strips and the active panel lifts forward with depth and spring motion.
Dependencies
Install the following dependencies to use this component:
1npm install motion
Installation
Run the following command in your terminal to add the component to your project:
1npx rankflow-ui@latest add accordion-stack-deck
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AccordionStackItem[] | DEFAULT_ITEMS | Array of items with id, question, and answer. |
| className | string | '' | Additional CSS classes for the wrapper. |