Skip to main content
Version: 57.2.0

Accordion

Accordion is a container that can be expanded and collapsed to show content about a single subject. Its contents can be visible at all items, or expand and collapse as an individual item or a group of items. Also called “drawer”, “collapsed section”, “expandable section”, or “dropdown section”.

Package: @terreno/ui
Categories: Component
Props interface: AccordionProps
Story source: demo/stories/Accordion.stories.tsx

Live demo

Props

PropTypeRequiredDescription
childrenReactNodeYesThe content to be displayed inside the accordion.
titlestringYesThe title of the accordion.
includeInfoModalbooleanIf true, an information modal will be included.
infoModalChildrenReactElementThe content of the information modal.
infoModalSubtitlestringThe subtitle of the information modal.
infoModalTextstringThe text content of the information modal.
infoModalTitlestringThe title of the information modal.
isCollapsedbooleanIf true, the accordion will be collapsed.
onTogglereflection* Callback fired when the accordion is toggled.
subtitlestring
testIDstringRoot test id for the primary interactive element or container.