Back to Accordion
View full API on Accordion
Accordion
Controlled
Open state driven by external buttons.
Manage your plan and invoices.
API
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | AccordionItem[] | — | Sections to render. |
| allowMultiple | boolean | false | When true, multiple sections can be open at once. |
| activeKeys | string[] | — | Controlled open section keys. |
| onActiveKeysChange | (keys: string[]) => void | — | Fires when open section keys change. |
| defaultOpenKeys | string[] | — | Initial open keys (uncontrolled). |
| forcedOpenKeys | string[] | — | Keys that stay open and cannot be closed. |
| disabled (item) | boolean | — | Disables a single item. |