Back to Accordion
View full API on Accordion
Accordion
Default styling
FAQ-style single mode and multi-open layout.
FAQ-style (single open)
Multiple open sections
Keyboard navigation, animated panels, and accessible trigger semantics.
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. |