Skip to main content

useAccordionState

Return object

PropTypeDescription
getItemState(key: ItemKey, { initialEntered?: boolean } => TransitionStateA function that can be use to retrieve item state.
toggle(key: ItemKey, toEnter?: boolean ) => voidA function that can be use to toggle item state.
toggleAll(toEnter?: boolean ) => voidA function that can be use to toggle all item states at the same time.