Skip to main content

useAccordionItem

Parameter object

PropTypeDescription
stateTransitionStateThe item state returned from useAccordionItemEffect.
toggle(toEnter?: boolean) => voidThe toggle function returned from useAccordionItemEffect.
disabledbooleanWhether the accordion item is disabled.

Return object

PropTypeDescription
buttonPropsobjectAn object to be spread to the item button element.
panelPropsobjectAn object to be spread to the item panel element.