Skip to main content

AccordionItem

PropTypeDescription
itemKeystring | numberSet an explicit key which can be used to expand or close item.
initialEnteredbooleanMake the accordion item expanded when initially mounted. This prop takes precedence over the initialEntered prop of Accordion component.
disabledbooleanIf true, disable the accordion item and exclude it from keyboard navigation.
headernode | functionSet item header. Support a function form which will receive item states.
childrennode | functionSet item content. Support a function form which will receive item states.
headingTagstringSet heading tag; value can be h1 to h6.
headingPropsobjectSet props and attributes on the heading element.
buttonPropsobjectSet props and attributes on the button element.
contentPropsobjectSet props and attributes on the content element.
panelPropsobjectSet props and attributes on the panel element.