Digital pattern library

Accordion (old version)

Attention

This old method of implementing the accordion pattern is deprecated and will be removed in a future version of the digital pattern library. Please refer to the current accordion pattern for the correct method.

The accordion pattern presents an expandable and collapsible section of content. Accordions shorten pages and reduce scrolling, but they require users to click on topic headings to find information. Therefore, accordions should be used sparingly. For more information see the Nielsen Norman Group report on accordion usability.

Rules for accordions

Options available


Single accordion - deprecated

Attention

This implementation is now deprecated and will be removed in a future release.

Consider if the content would be better visible at all times before using a single accordion to hide it from the user.

Example
Code


Multiple accordions - deprecated

Attention

This implementation is now deprecated and will be removed in a future release.

Example
Code