Accordion

Accordion description.


Props

Accordion properties

PropertyDescriptionTypeDefaultVersion
titleTitle of the accordionstring-
prefixVisual cue to prefix the accordion titleReactNode-
iconCustomize the icon on the far rightReactNode-
expandedShould accordion be expanded by default?booleanfalse

Usage

Basic Accordion

Expanded

Accordions are collapsed by default but can be expanded where necessary

Prefixed

Accordions can be prefixed with any React component where necessary

Custom Icon

The default arrow icon can be easily replaced with any custom icon you prefer