DEVELOPMENT PREVIEWIn development

accordion API

disclosure/accordion.tsx

Accordion

Props

PropTypeDefaultDescription
items*
{}—
openKey
string | null | undefined—Controlled open key (null = all closed).
Show native HTML props

Native HTML Props

PropTypeDefaultDescription
defaultOpenKey
string | null | undefinednullInitial open key for uncontrolled usage.
onChange
((key: string | null) => void) | undefined—Fires with the opened item's key, or `null` when the open item closes.
className
string | undefined—