Atelier UI

Search components…

Search components…

FAQ Accordion

FAQ accordion with smooth height animation, single or multiple open items.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

FaqAccordionProps

Also accepts all props of React.ComponentProps<"div">

PropTypeDefaultDescription
items* requiredFaqItem[]——
multiplebooleanfalseAllow several answers to be open at once
defaultOpennumber0Index of the item open on first render, -1 for none
variant"separated" | "divided""separated""separated" draws a card per item, "divided" uses lines between items

Install

$ npx shadcn@latest add https://chromotion.dev/r/faq-accordion.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this