accordion API
disclosure/accordion.tsx
Accordion
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items* | {} | — | |
openKey | string | null | undefined | — | Controlled open key (null = all closed). |
Show native HTML props
Native HTML Props
| Prop | Type | Default | Description |
|---|---|---|---|
defaultOpenKey | string | null | undefined | null | Initial open key for uncontrolled usage. |
onChange | ((key: string | null) => void) | undefined | — | |
className | string | undefined | — |