Some features from this component may require sgds.js
Overview
Accordions are interactive elements that allow users to either show or hide related content, through a dropdown mechanism.
Types
1) Simple accordion
This is my accordion content
This is my accordion content
2) Accordion set
A set of accordions, of which only one can be open at a time.
You can add the is-open
class to sgds-accordion
to show the content on page load
your content 1
This is an example of a open section
your content 3
Style
Modifier | Description |
---|---|
sgds-accordion is-*color* |
Replace |
sgds-accordion is-borderless |
Remove border around the accordion. |
sgds-accordion is-open |
To expand the accordion on page load. |
sgds-accordion is-*size* |
Replace |
When to use
Accordions should be used when:
- There is insufficient space within the page to display the necessary information.
- Users require an overview of specific content that’s related to one another.
Accordions should not be used when:
- They contain information that is essential to your users.
- Accordions hide content, and there may be users who may miss the content or not understand how accordions work.
- If users need to see all information in a single page, you can consider reducing your content, splitting them into smaller sections, or use well-formatted text (e.g. headers, contents, section)
Accordions increases the cognitive load for users, as decisions have to be made when clicking on the headers. Users may also ignore important information if it is hidden in an accordion.
Can't find a component?
Let us know what you need and we’ll be happy to look into it