Data display
Accordion
Let readers expand the sections they need and scan the remaining headings.
Anatomy
- Section title
- Expansion indicator
- Content panel
- Section divider
Configuration
Expansion behaviour
Import the components and connect them to your palette tokens.
Use when readers should focus on one section at a time.
Import the components and connect them to your palette tokens.
Change fills, borders, and states without editing component logic.
Use when readers need to keep several sections open for reference or comparison.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Section title and chevron |
--cc-muted-foreground | — | Expanded panel text | |
--cc-surface | — | Accordion background | |
--cc-border | — | Outer border and dividers between sections | |
--cc-focus-ring | — | Keyboard focus ring |