Behavior

Single Select

A single select collapsible allows only one option to be open at a time. Selecting an option both opens the selected option and closes the previously selected option (if a previously selected option exists). A single select collapsible allows one option to be open by default, or all options to be closed by default.

Multiselect

A multiselect collapsible allows several options to be open at a time. A selection to open or close an option only affects the selected option. A multiselect collapsible allows zero, one, or many options to be open by default.

Props

Accordion
System Props

Accordion composes Collapsible

  • COMMON
  • TYPOGRAPHY
  • BORDER
  • LAYOUT
  • POSITION
  • FLEX
  • GRID
  • Learn More
NameTypeDescription
size"small" | "medium" | "large"Size of accordion
medium
gradientResponsiveValue<TLengthStyledSystem, Required<Theme<TLengthStyledSystem>>>-
defaultOpenIndicesnumber[]Default open panel indices. If allowMultiple is false, will use the first index
[]
openIndicesnumber[]Use for controlled accordion. If this is set, allowMultiple and defaultOpenIndices will be ignored
isCollapsiblebooleanIf true, will allow all panels to be collapsed. By default, one panel must always be open.
false
allowMultiplebooleanIf true, will allow multiple panels to be open at once. By default, only one can be open at any time.
false
AccordionItem
System Props

  • COMMON
  • TYPOGRAPHY
  • BORDER
  • LAYOUT
  • POSITION
  • FLEX
  • GRID
  • Learn More
NameTypeDescription
onToggle(status: ToggleType) => voidCallback when toggled
gradientResponsiveValue<TLengthStyledSystem, Required<Theme<TLengthStyledSystem>>>-
isDisabledbooleanDisable trigger item if true
AccordionTrigger
System Props

Renders an unstyled button

NameTypeDescription
AccordionPanel
System Props

  • COMMON
  • TYPOGRAPHY
  • BORDER
  • LAYOUT
  • POSITION
  • FLEX
  • GRID
  • Learn More
NameTypeDescription
gradientResponsiveValue<TLengthStyledSystem, Required<Theme<TLengthStyledSystem>>>-
collapsedHeightTLengthStyledSystemHeight (in px if number) when panel is closed
animateOpacitybooleanAdds a fade effect

Accessibility

  • Once focused on a trigger, ArrowUp and ArrowDown can be used to navigate through items. Tab behaves as normal