Optionalcollapsible?: booleanLets the open item close, leaving all closed. When false, one item always stays open.
OptionaldefaultValue?: string | nullInitially open item (uncontrolled).
OptionalonValueChange?: (value: string | null) => voidCalled with the open item, or null when it closes.
One item open at a time.
Optionalvalue?: string | nullOpen item (controlled), or null when all are closed.
Optionalcollapsible?: neverOptionaldefaultValue?: string[]Initially open items (uncontrolled).
OptionalonValueChange?: (value: string[]) => voidCalled with all open items.
Any number of items open.
Optionalvalue?: string[]Open items (controlled).
Props for Accordion.
typedecides whether one or many items can be open.