If true, multiple accordion items can be expanded at once.
Accordion
Accordions display a list of high-level options that can expand/collapse to reveal more information.
Props#
Accordion Props#
allowMultiple
allowMultiplebooleanallowToggle
allowToggleIf true, any expanded accordion item can be collapsed again.
booleancolorScheme
colorSchemeColor Schemes for Accordion are not implemented in the default theme. You can extend the theme to implement them.
stringdefaultIndex
defaultIndexThe initial index(es) of the expanded accordion item
ExpandedIndexindex
indexThe index(es) of the expanded accordion item
ExpandedIndexonChange
onChangeThe callback invoked when accordion items are expanded or collapsed.
((expandedIndex: ExpandedIndex) => void)reduceMotion
reduceMotionIf true, height animation and transitions will be disabled.
booleansize
sizeSizes for Accordion are not implemented in the default theme. You can extend the theme to implement them.
stringvariant
variantVariants for Accordion are not implemented in the default theme. You can extend the theme to implement them.
stringAccordionItem Props#
id
idA unique id for the accordion item.
stringisDisabled
isDisabledIf true, the accordion item will be disabled.
booleanisFocusable
isFocusableIf true, the accordion item will be focusable.
booleanAccordionButton Props#
AccordionButton renders a button and composes Box, this means you can style
it by passing the pseudo style props _expanded, _disabled, _hover, etc.
AccordionPanel Props#
AccordionPanel renders a div and composes Collapse to provide the height
animation.