Accordions are vertically stacked sections of content that, when selected, expand or collapse to reveal or conceal related content panels. They’re a type of progressive disclosure that simplify large amounts of content and minimize scrolling.


Also known as: Summary (html), expand/collapse, hide/show.

Anatomy

An accordion with callout A indicating the required chevron, callout B indicating the required header section, and callout C indicating the required panel

A. Chevron (required): Interactive element indicating that users can expand or collapse the accordion.
B. Header section (required): Area containing the accordion title which briefly describes the content in the expanded panel.
C. Panel (required): Area containing content that, when expanded, provides details relevant to the header.

Usage

When to use and when not to use different types of accordions
Component When to use When not to use
Multi-selectTo present users with multiple sections of content that can be expanded simultaneously. This is the most common use case.To organize content into clear, distinct categories where only one category should be viewed at a time. Use single-select accordion instead.

If there is not enough content to warrant condensing. Add this content to the main content area of the page instead.

To organize large volumes of content into separate, distinct categories. Use Tabs instead.

To provide a visual summary of information. Use a Content card instead.
Single-selectTo present users with multiple sections of content, but only one can be expanded or viewed at a time. If users would benefit from viewing information between multiple sections simultaneously. Use a multi-select accordion instead.

For complex, step-by-step tasks. Use a Wizard instead.

To provide a visual summary of information. Use a Content card instead.

Best practices

  • Use accordions carefully as they diminish content visibility and increase interaction cost.
  • Never hide critical information that should be easily accessible within an accordion.
  • Enhance usability by making the header section clickable for content expansion.
Three accordions titled 'Device requirements', 'Application compatibility', and 'Supported languages', emphasizes efficient screen space and minimize cognitive load

Do Use accordions for multiple content sections to efficiently manage screen space and minimize cognitive load.

A single expanded accordion titled 'Welcome to v1.2.3' and content 'We're excited for you to explore all the new features we've designed with you in mind.'

Don't Use accordions for single sections of content, especially for important information that would benefit from easier access.

Three accordions titled 'How do I update my profile?', 'How do I change my password?', and How do I manage my notifications', emphasizes findability and navigation.

Do Use accordions to group related information at the same level, enhancing content findability and navigation.

An expanded accordion titled 'How do I update my profile?' with the content 'To change your password, go to My Account > Security Settings to change your password.' and a nested accordion titled 'Can I invite my team?'.

Don't Nest accordion sections as it can make content harder to find and navigate through.

Multi-select accordions

Multi-select accordions provide users with control over how they view the information by allowing them to expand multiple sections of content at once. They are typically used for FAQs, product descriptions, and event or course details.

A frequently asked questions section with multiple accordions expanded to show content.
  • Allow users to reference or compare multiple sections of content at the same time.
  • Place in logical locations to maintain the natural flow of the page, ensuring they’re easy to find and use.
Two accordions expanded to reveal content that are each one to two sentences long, emphasizes concise and organized for easy navigation.

Do Ensure content within multi-select accordions is concise and organized for easy navigation with multiple sections open.

An expanded accordion with lengthy content that runs past the page viewport, emphasizes navigation issues

Don't Use accordions for long, complex content as it can cause navigation issues when multiple sections are open at once.

Single-select accordions

Single-select accordions only allow users to view one section of content at a time. They are ideal for small screen sizes as they minimize clutter and focus user attention on specific content. Learn more in Platform considerations.

A frequently asked questions section displayed in a mobile layout with only one accordion opened at a time.
  • Use single-select accordions sparingly as they reduce user control and can lead to frustration.
  • Position single-select accordions logically to preserve page flow, ensuring easy discovery and interaction.
An accordion layout with the first accordion titled 'What's your shipping policy?', the second accordion expanded titled 'Do you ship internationally?' with the content 'Yes, however shipping fees, customs duties, and taxes are extra. Delivery times may vary due to customs.', and the third accordion titled 'What if my order arrives damaged?', emphasizes focus on one category at a time

Do Use single-select accordions to make content easier to view, enabling users to focus on one category at a time.

An accordion expanded with form inputs for First name, Last name, and Country, emphasizes complex interactions

Don't Use single-select accordions for complex, step-by-step tasks that require complex interactions.

Automatic closure

Single-select accordions only allow users to expand one section at a time. The expanded section should automatically collapse when the user selects a new section.

An accordion layout with only one accordion expanded at a time
  • Ensure users also have the ability to control when they want to close a section and open another.

Chevron direction

Visually differentiate expanded and collapsed sections using the chevron direction. In some cases, it may be appropriate to use a plus (+) or minus (-) icon instead of a chevron. Whichever method you choose, use it consistently.

Collapsed

Collapsed sections should use the inactive color palette.

Collapsed accordions with the chevron pointing to the right and the header text in black.
  • Use the right pointing chevron to indicate collapsed content can be expanded.
  • Use the plus (+) icon to indicate that the section can be expanded.

Expanded

Expanded sections should use the active color palette.

An expanded accordion with the chevron pointing down and the header text in active blue.
  • Use the downward pointing chevron to indicate expanded content can be collapsed.
  • Use the minus (-) icon to indicate that the section can be collapsed.

Behaviors

Applying accordion functionality

In some cases, it may be appropriate to combine interactive elements to achieve accordion-like functionality. Unlike standard accordions that only reveal or conceal content, these combinations can be used to show or hide additional user options or actions. This functionality can be accomplished using a UI icon button or text button to expand or collapse the section. Keep in mind that these combinations have different accessibility considerations than single- and multi-select accordions.

Revealing a checkbox group

Accordion functionality can be used to expand or collapse additional options within a checkbox group. This is achieved by combining a UI icon button with checkbox group, where selecting the chevron would show or hide additional, nested options. This design requires careful consideration as it introduces a two-step process which can add confusion for users.

Collapsed

The user selects the chevron button to reveal the options within the checkbox group.

A collapsed checkbox group titled 'All products' with the chevron pointing to the right.
  • Ensure the checkbox is visible when the accordion is collapsed to indicate there’s an action to be taken.
  • Use the right pointing chevron to indicate collapsed content.
Expanded

The user makes their selection from the available options within the checkbox group.

An expanded checkbox group titled 'All products' with the chevron pointing down to display checkboxes for 'Credit offers', 'Retirement plans', and 'Auto loans' under 'All products'.
  • Group related options and order them logically by either the order of importance or alphabetically.
  • Use the downward pointing chevron to indicate expanded content.
Chevron with a hover state indicating users can expand the checkbox group like an accordion.

Do Ensure a clear distinction between checkbox actions and accordion actions to prevent accidental selections.

A checkbox group placed with very little padding in between it and the chevron control.

Don't Place checkboxes too close to the accordion's expand/collapse control to avoid accidental selections.

A checkbox group titled 'All products' with two options selected 'Retirement plans', and 'Auto loans' while 'Credit offers' is unselected. 'All products' to select all is disabled.

Do Follow Checkbox guidance when providing visual cues that indicate when an option is selected or indeterminate.

A checkbox group titled 'Allow all' with the functionality to select all options is selected for 'Privacy and security permissions', emphasizes critical choices

Don't Allow users to select all options at once when dealing with critical choices like privacy settings or terms and conditions.

Revealing a panel

Accordion functionality can be used to expand or collapse a panel through a button. For example, showing additional filters and fields for advanced search. A similar function is used to expand an inline help panel for credit card security codes using a tooltip button to reveal a content section beneath the input field when selected.

Collapsed

The user selects the “Show filters” button to reveal or hide the panel.

A search field and a collapsed button with a plus sign icon that is labelled 'Show filters'
  • Use text or context clues to indicate that the panel will expand to reveal additional actions.
  • Use the plus (+) icon to indicate collapsed content will expand when selected.
Expanded

The user then makes their selection from the available options.

A search field and an expanded button with a minus sign icon that is labelled 'Hide filters'. Below it are filter fields 'Filter one', 'Filter two', 'Filter three', with two buttons labelled 'Apply' and 'Reset'.
  • Allow users to collapse the section by selecting the same action that expanded the section.
  • Use the minus (-) to indicate expanded content will collapse when selected.

Animation

Accordions may animate. Typically, they use a smooth, vertical sliding effect. When a user clicks on an accordion header, the associated content panel expands downward, revealing the hidden content. Conversely, when the header is clicked again, the content panel collapses upward, hiding the content.

An accordion with a downward animation that gradually reveals content and another animating upward gradually hiding content.
  • Ensure animations are brief, subtle, and unobtrusive.
  • Implement animations consistently across accordions in your experience, either animating all or none.

Platform considerations

Mobile

Full-width accordions

Full-width accordions make it easier for users to select and expand sections on mobile devices and reduce the chance of missed selections. While there’s no set limit to the number of accordions on a mobile interface, excessive use can create a cluttered and overwhelming experience.

An accordion expands to the full width of the screen in a mobile layout.
  • Use full-width accordions for screen sizes where users would benefit from extra touch space.
  • Consider simplifying the interface or reevaluating the information architecture if many accordions are needed.

Content

  • Use simple language—avoid abbreviations or jargon.
  • Use sentence case, except for proper nouns or acronyms.
  • Use accordions to simplify the interface by hiding content, not to fit more onto the screen.

Accordion titles

  • Use short, concise content across headers or section labels. Aim for a range of five to ten words.
  • Only use punctuation when labels are phrased as questions, such as “How do I edit my billing information?”
  • Ensure labels accurately describe the content within the section to help users predict what they will find when expanded.
  • Use parallel structure for all labels, using either questions, statements, or nouns. Learn more about parallel structure by visiting Grammar and punctuation.

Panel content

  • Use complete sentences and proper punctuation within each section or panel.
  • Keep the content within each panel concise and to the point.
  • Avoid unnecessary details or complex language.
  • Provide users with the answers they need as quickly and efficiently as possible.
  • If content within the accordion is becoming too lengthy, it may be a sign that the information should be presented in a different way, such as being broken down further, moved to a separate page, or even represented visually.