accordion

A vertical stack of headings that each expand or collapse a panel of content.

In more detail

Each heading contains a button with aria-expanded and aria-controls. Accordions may allow one or several panels open at once, and are a classic compound component.

Example

In the browser: Accordions save space on long pages by letting users open only the sections they need. An accessible accordion uses a real button, toggles aria-expanded and links the button to its panel with aria-controls.

Related terms

Taught in

References