Accordion
A vertically stacked set of interactive headings that each reveal an associated section of content.
Made by imskyleenInstallation
Usage
API Reference
Accordion
AccordionItem
AccordionTrigger
Prop | Type | Default |
---|---|---|
showArrow? | boolean | true |
AccordionContent
Prop | Type | Default |
---|---|---|
transition? | Transition | { type: 'spring', stiffness: 150, damping: 22 } |
keepRendered? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |
The asChild
and forceMount
props are not supported in the
AccordionContent
component as it is used for animation.
Credits
- Radix UI Accordion
- Credit to shadcn/ui for style inspiration.