DEVELOPMENT PREVIEWIn development

accordion API

disclosure/accordion.tsx

Accordion

Props

PropTypeDefaultDescription
items*
{}
openKey
string | null | undefinedControlled 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
className
string | undefined