Skip to main content

Accordion

PropTypeDescription
allowMultiplebooleanAllow multiple accordion items to expand at once.
initialEnteredbooleanMake all accordion items expanded when initially mounted.
mountOnEnterbooleanLazily mount children of accordion items until they are expanded. Use this option if you don't need to server-side render accordion item contents.
unmountOnExitbooleanUnmount children of accordion items after they are collapsed.
transitionView on GitHubEnable or disable transition. Accept a single boolean value or each individual transition stage in an object.
transitionTimeoutView on GitHubSet transition duration. Accept a single number or individual "enter" or "exit" stage in an object.
onStateChange(event: { key: ItemKey; current: TransitionState }) => voidEvent to notify state changes in any accordion items.