Back to Accordion
View full API on Accordion
Accordion
Keyboard behavior
Multiple-open accordion for exploring keyboard navigation.
Focus a trigger, then use Arrow Up/Down to move, Home/End to jump, and Enter or Space to toggle.
First panel content.
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. |