Skip to main content

Accordion

Expand & collapse content sections vertically, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
itemsAccordionItem[]-
separatedbooleantrue
indicatorchevron | plus-minuschevron
indicatorPositionleading | trailingtrailingWhich end of the trigger the indicator sits at.
Which end of the trigger the indicator sits at.
multiplebooleanfalse
defaultValuestring[]-
valuestring[]-Controlled open items, by value.
Controlled open items, by value.
onValueChange(value: string[]) => void-
variantdefault | bordered | ghost | subtledefault
shapesquare | rounded | squirclerounded
animatedbooleantrue
focusboolean | stringtrue