Accordions
Groups related long content into sections shown one at a time
Overview
Anatomy
Core elements
- Caret: Identifies when the accordion is open or closed. Pointing down in open. Pointing right is closed.
- Title: Identifies the title of the accordion.
- Description: Additional text to provide context to the accordion content.
- Body: Contains the content of an accordion.
Optional header elements
- Description: Additional text to provide context to the accordion content.
- **Info icon: **Offers additional contextual information to the accordion content on hover/click with a tooltip or modal.
- Counter: Counts the number of items, or number of items that require action inside the accordion.
- Badge: Presents users with short, important information that should be distinguished from the rest of the display.
- Menu icon: Allows for access to multiple controls from a single trigger.
Variants
- Background
- No background
- Chevron left
- Chevron right
Guidelines
When to use
- You have long sections of content with similar structure, such as employees within teams.
- You want to show only one section at a time (to keep users from being overwhelmed to support progressive disclosure).
When not to use
- You want to display all content on the screen at once—use a card.
- Each section has a single associated action—use a tile.
- The information to hide is simple and doesn’t have a repeating structure—use a collapse.\\
📱 Mobile Considerations
- Accordion components should span the full width of the screen or a full-width container within screen margins.
- Avoid using nested accordions, as this can be difficult to navigate on smaller screens.
Behaviour
States
An accordion can be expanded or collapsed — this is a visual affordance. In addition, accordions have 2 interactive states that may affect the visual output. Available interactive states: default and focus.
To do