Back to Accordion
Accordion

Controlled

Open state driven by external buttons.

Manage your plan and invoices.

API

PropTypeDefaultDescription
items*AccordionItem[]Sections to render.
allowMultiplebooleanfalseWhen true, multiple sections can be open at once.
activeKeysstring[]Controlled open section keys.
onActiveKeysChange(keys: string[]) => voidFires when open section keys change.
defaultOpenKeysstring[]Initial open keys (uncontrolled).
forcedOpenKeysstring[]Keys that stay open and cannot be closed.
disabled (item)booleanDisables a single item.
View full API on Accordion

More Accordion examples