Accordion

In progress
ARIA
RTL

Like the accordion instrument, our accordion component reveals or hides associated sections of content. This is done through the use of a vertically stacked list of headers.

Users can decide which sections to toggle, read and close as the header titles will give them a high-level overview of the content that's in the space.

Default

Open by default

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Without button

Disabled

Content outside

Header content

Sizes

Sizes: content outside

Custom background

Accordion props

NameTypeRequiredDefaultDescription
bgColorstringNobg-gohanAlters background colour of accordion
childrenReact.ReactNodeNo-Children content
disabledbooleanNofalseDisables accordion
headerContentReact.ReactNodeNo-Additional content to render in accordion header
isContentInsidebooleanNotrueDisplays content inside of the accordion header block
openByDefaultbooleanNofalseExpanded accordion by default
sizesm | md | lg | xlNomdSize of accordion
titlestring | React.ReactNodeYes-Title of accordion
withButtonbooleanNotrueToggles expand/collapse arrow