Component 27 · Layout
Accordion
Progressively disclose secondary detail.
Overview
Progressively disclose secondary detail. It establishes reading order and decision grouping before visual decoration.
When to use
Use HE/Accordion when you need to progressively disclose secondary detail. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
Adaptive sampling
Sampling slows when the signal remains stable and increases when change is detected.
<details class="he-accordion" open><summary>Adaptive sampling</summary><div class="he-accordion__content">Sampling slows when the signal remains stable and increases when change is detected.</div></details>Anatomy
1Context
2Heading
3Content
4Optional action
Anatomy stays identical in Pasture and Atlantic. A responsive layout may wrap or stack parts, but reading order and focus order remain equivalent.
Variants and states
Variants
States
Accessibility
The trigger is a button with expanded and controls relationships.
- Maintain a visible keyboard focus indicator and a logical focus sequence.
- Never rely on colour alone for operational, freshness or severity state.
- Keep touch targets at least 44 × 44 px unless the target is an inline text link.
Cross-platform contract
| Surface | Canonical name | Status |
|---|---|---|
| Figma | HE/Accordion | stable |
| Web | .he-accordion | implemented |
| Flutter | HeAccordion | implemented |
| Token root | component.accordion | generated |