Accordion

Accordion organises content into collapsible sections for space-efficient information display.

accordion/styleImage

Resources

Intro & Anatomy

Accordions organise content into collapsible, vertically stacked sections that users can expand and collapse as needed. Use accordions for secondary information that would otherwise clutter the interface, such as FAQs, specifications, or supplementary content.

Each section contains a clickable header and content area. By default, sections remain collapsed until users interact with headers. When expanded, content becomes accessible whilst other sections stay collapsed, maintaining a clean interface.

MDX offers light and grey variants, both with or without padding for different background contexts.

accordion/anatomy

 


 

Options & Styles

Variants

Grey for use on white backgrounds to create visual separation
White for use on coloured backgrounds to maintain contrast
Both variants available with or without padding depending on layout needs

accordion/variants

Content

Title/header is mandatory for each accordion section
Content can include text, images, and other non-interactive elements
Rating is optional and displays as static stars only

accordion/content

States

Default and hover states available for both collapsed and expanded sections to provide clear interactive feedback

accordion/states

 


 

Accordion Stacks

Accordions are typically displayed in stacked groups for related content organisation. Use either background colour variants or line separators between sections to create clear visual distinction whilst maintaining cohesive grouping.

accordion/stacks
accordion/stacks2

 


 

Best Practice & Usage

Accordions should organise related secondary information whilst maintaining clear visual hierarchy and avoiding content that's essential for task completion.

Accordions commonly present hierarchical content such as FAQs, product descriptions, or categorised information in a space-efficient manner.

Display between 4-12 items for optimal usability without overwhelming users.

Ref to 112:3646
Ref to 112:3672
Ref to 85:1191
Ref to 85:1238
Ref to 85:1227
Ref to 85:1243
Ref to 85:1221
Ref to 85:1224
Ref to 89:2064
Ref to 89:2067
accordion/Usage/DO-starss
accordion/Usage/DONT-stars
Ref to 89:2152
Ref to 89:2156

 

Theming

You can customise colours, font styles and weights, border width and radius, and spacings to match your design requirements.

When not using MDX icons, a slot is available to use your own icon library or SVG icons.