Skip to main content

Accordion

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

View as Markdown

Installation

Component API

PropTypeDefaultDescription
itemsAccordionItem[]-
separatedbooleantrue
indicatorPositionleading | trailingtrailingWhich end of the trigger the chevron sits at.
Which end of the trigger the chevron sits at.
multiplebooleanfalse
defaultValuestring[]-
valuestring[]-Controlled open items, by value.
Controlled open items, by value.
onValueChange(value: string[]) => void-
variantdefault | bordered | ghost | subtledefault
shapenone | roundedrounded
animatedbooleantrue
classNamestring-
focusboolean | stringtrue