search⌘K

Accordion

Last Updated: September 2026

Accordions store collections of supplemental information stored in one compact location. Various toggling behaviors are supported to handle different viewing options.

Anatomy

link
Dotted grid scale: 8px
  1. 1Heading
  2. 2Subheading
  3. 3Chevron Icon
  4. 4Content Slot

Variants

link

Single-expand

Default. Opening one item closes the others.

Multiple

multiple allows several panels open at once.

With subheading

subHeading adds secondary context under the title.

Disabled item

disabled on an item prevents open/close for that section.

Usage Guidelines

link

When to use

  • •To organize related sections on a long page without showing everything at once.
  • •When users need to scan headings and open only what they need.
  • •For settings, FAQs, and detail groups that share one list pattern.

When not to use

  • •For a single show/hide block — use Disclosure.
  • •When all content must be visible for comparison — use static sections.
  • •For primary navigation — use Navigation patterns instead.
checkDo

Use short, scannable headings that describe the section.

closeDon't

Don't use vague headings like 'Section 1' or 'More'.

checkDo

Group related sections that share the same interaction pattern.

closeDon't

Don't nest unrelated workflows that belong on separate pages.

Behaviors

link

Open state

  • •Single-expand is the default (multiple={false}).
  • •Control open items with value / defaultValue on the root and matching value on items.

Disabled

  • •disabled on the root disables every item.
  • •disabled on an item disables only that section.

Content Guidelines

link

Headings

  • •Use noun phrases that name the section ('Billing', 'Security').
  • •Keep headings unique within the accordion.

Panel content

  • •Put only the details needed for that section — avoid dumping entire pages.
  • •Prefer forms and lists that make sense in a collapsible panel.

Accessibility

link

Text & Labels

  • •Heading text is the accessible name of the trigger.
  • •Subheadings are supplemental — don't rely on them alone for meaning.

ARIA attributes

  • •Items expose expand/collapse state to assistive technology.
  • •Disabled items are announced as unavailable.

Keyboard Support

  • •Tab → move between item triggers.
  • •Enter / Space → expand or collapse the focused item.

WCAG Compliance Standards

FAQs

link

Accordion vs Disclosure?

Accordion manages a list of sections (often one open at a time). Disclosure is a single collapsible block.

How do I open an item by default?

Set defaultValue (or value) on Accordion to the item's value, and set the same value on Accordion.Item.

Can multiple panels be open?

Yes — pass multiple on Accordion.

link