Digital pattern library

Accordion

The accordion pattern is backwards-compatible with previous implementations used on the Study at St Andrews website – see old-accordion example, below. This support will be removed at some point, so please do not use the old accordion markup.

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 and with care. For more information see Nielsen Norman Group report on accordion usability.

Usage

Examples

single-accordion

View | Code | Open in new window

multiple-accordions

View | Code | Open in new window

old-accordion

View | Code | Open in new window