An accordion is a section that can expand and collapse vertically by clicking on its header.
To help a section fit in a space and to progressively expose content. An accordion also reduces scrolling on a page with a lot of content.
Usually within another larger section combined with other accordions
- Accordions are best used when only some of the content on the page will likely be used at once by a user. If the user is likely to want to access most of the content on the page, accordions can be cumbersome and can slow the user down. Consider whether it is better for the user to see all of the headings at once and choose where to see more or if it would be more helpful to show all the page’s contents at once.
- Be aware that accordions increase interaction cost.
- Hiding content might make that content easier for a user to miss or ignore.