Accordion

Vertically stacked disclosure sections on bits-ui Accordion. Height springs open and closed via a gentle preset; reduced-motion collapses the transition to zero.

Usage

Multiple open

Set type="multiple" to let several items stay open at once.

Opens independently of the others.

Stays open alongside its siblings.

Accordion.Root props

Inherits bits-ui Accordion.Root props. Item, Trigger, and Content pass through with minimal additions.

PropTypeDescription
'single' | 'multiple'Single allows one item at a time; multiple lets several stay open.
string | string[] (bindable)Controlled active item(s). String when type is single, array when multiple.
booleanDisables every trigger in the group.
booleanRoving focus wraps past the ends.
stringMerged onto the root container via tailwind-merge.

Accordion.Trigger props

PropTypeDescription
1 | 2 | 3 | 4 | 5 | 6Heading level applied to the internal AccordionPrimitive.Header.
stringMerged onto the trigger button.