Accordions are a vertically stacked list of headers that toggle the display of related sections of content.
Accordions can decrease cognitive load by grouping information and only presenting content that the user has selected. However, given their purpose, there is an inherent risk that users will miss information within the accordion. Do not use this component if it is crucial or required that a user review the content under all accordion headers.
Related body content
Related body content
Related body content
The accordion is best used in environments where there are space constraints, such as on mobile or within side panels. They are also used as an alternative to other content grouping components, such as tabs, at smaller breakpoints to avoid side scroll. Keep a margin of at least 16px between the top of the accordion and any components above and below it. Accordions fill the width of their containing element.
Accordion headers should clearly summarize the information in the panel. They should be succinct and fit onto one line. Follow the microcopy guidelines in the Title element for more information.