ComponentsNew

Clip Accordion

Questions and answers that open on a spring. The answer is revealed top to bottom like a blind. Several items can be allowed to stay open.

Customize

accentColor
secondaryColor
glowColor

Based on Accordion (MIT license) · Terms of use

More in Pro

View all

Props

10 properties
PropertyTypeDefaultDescription
childrenReactNode—AccordionItem entries with an AccordionHeader and an AccordionPanel inside.
multiplebooleanfalseSeveral items can be open at once.
defaultValuestring | string[]—Which item is open at first.
accentColorstring"#ffffff"Main colour: border and chevron of the open item.
secondaryColorstring"#a3a3a3"Second colour: where the open header's tint fades to.
glowColorstring"rgba(255, 255, 255, 0.12)"Soft glow around the open item.
AccordionItem.valuestring—Unique name of the item.
AccordionHeader.customIconboolean—Hide the chevron to use your own icon.
AccordionPanel.articleClassNamestring—Classes of the inner block that wipes open.
classNamestring—Extra classes.

Dependencies

4 required packages

npm install motion lucide-react clsx tailwind-merge

Related components

View all