Skip to Content
DocumentationComponentsAccordionNext Gen

Accordion

Accordions organize content into sections, putting the user in control of what information they want expanded and collapsed.

Loading...

Overview

Accordion overview

Resources

Changelog

Loading...

Source code

Loading...

Loading...

Storybook

Loading...

Loading...

Variations

Accordions are useful for exposing content to users in a progressive manner. Use accordions when the content that can be collapsed is supplementary to the primary content on the page, or when vertical space is limited and there’s a need to condense content.

Default accordion

Default accordion

Use the default accordion wherever possible to expand and collapse content. The default accordion is used today throughout the platform on pages such as the Contact Details page. It’s also used on other Details pages, such as Accounts and Deals.

Side panel accordion

Side panel accordion

The side panel accordion is considered appearance=aside in development. It is contained within a right sidebar. While the sidebar can vary in width, the side panel accordion always fills the width of the side panel.

Floating accordion

The floating accordion is reserved for when space is limited and is considered borderless=true in development.

Floating accordion

Usage

Best practices

  • In most cases, the accordion’s expanded item content aligns to the label text of the accordion header. In a small accordion under 360px, the content left aligns to the expanded indicator icon.
  • Accordion header should be clearly written, in title case and avoiding punctuation at the end.

Accessibility

Keyboard support

  • Move focus between accordion items using the tab key, or shift + tab to move backwards
  • When the accordion item is in focus, use space or enter to expand or collapse the accordion item
  • Interactive elements (such as a link or button) within an expanded accordion item integrate into the tab order by default
Last updated on