Skip to content

Accordion

A vertical list of collapsible sections, each a trigger with a title and a panel that opens independently of the others.

Maturity
beta
Links
Storybook · Figma: AccordionItem · Figma: course-module-list example · Spec source · Usage source

Use cases

People using assistive technology should be able to:

  • Hear each section's title, and whether it is open or closed, from its button.
  • Open and close a section with Enter or Space.
  • Tab through an open section's links and skip the content of closed ones.
  • Jump between sections by heading, since each trigger sits inside one.

Reading order

The title names each button and its panel; the subtitle is read as the button’s description on every item, so keep it to one short fact, such as a duration. Set headingLevel to fit the page outline (h3 by default).

How anthropologists study human behaviour and culture: ethnographic methods, field research and cultural analysis.

Each trigger is a button in a heading, named by its title and described by its meta line. Its panel is named by the title.

Keyboard and focus

Tab reaches each trigger, and Enter or Space opens or closes it. Content in a closed panel is skipped; if a section closes while focus is inside it, focus goes back to its trigger.

Read the full syllabus before the first module.

Tab moves from a trigger into its open panel, then on to the next trigger. Links in a closed panel are skipped.

Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.