Design
Overview
An Accordion trades immediate visibility for scannability. Each row shows a heading, and the detail underneath stays collapsed until it is opened.
Usage
Number of items
The component is a stack rather than a single row. If a stack needs more than twelve rows, the content probably wants a different structure.
Headings
The heading is the only thing a fan sees before opening a row, so it has to carry the whole promise of what is inside. Write it as the question someone actually has, or the thing they are looking for. "How do I cancel" beats "Cancellation".
Opening behaviour
Rows open and close independently, so more than one can be open at a time. Do not collapse a row someone has opened because they opened another. Keep rows closed by default unless one of them is the obvious destination.
Design
Appearance
|
Item |
Usage |
|---|---|
|
1 |
Light Mode |
|
2 |
Dark Mode |
Anatomy
|
Item |
Usage |
|---|---|
|
1 |
Icon (Optional) |
|
2 |
Title |
|
3 |
Expand / Collapse Icon |
|
4 |
Content |
Variants
|
Item |
Variant |
|---|---|
|
1 |
Collapsed |
|
2 |
Expanded |
Animation
Opening/Closing
hum-2 / Ease Out will be used when opening and closing the Accordion. See our Motion guidelines for more information.
Expand/Collapse Icon
Rotation: +/-90deg / hum-2 / Ease Out