children | ReactNode | — | Compose {@link AccordionItem } children. |
className | string | — | Classes appended to the root. |
collapsible | boolean | true | When false, the open item cannot collapse, so one item always stays open once opened.
Not applicable when several sections may be open. |
defaultValue | string | string[] | — | Initial open item value when uncontrolled.
Initial list of open item values when uncontrolled. |
initialItemId | string | — | Item value whose trigger receives the tab stop on the first render, including server markup, when no
section is open. An open section takes precedence. Without either, the first enabled trigger becomes the tab
stop once the triggers mount. |
onValueChange | AccordionValueChangeHandler | — | Fires when a trigger requests a change. |
type | AccordionType | AccordionType.Single | Allows one open section.
Allows any number of open sections. |
value | string | string[] | — | Controlled open item value; an empty string means none is open.
Controlled list of open item values. |
variant | AccordionVariant | AccordionVariant.Default | Visual chrome of every item. |