UI / UXUI ComponentsDisclosure & ContainersInteractiveBeginner
Accordion
KO: 아코디언·EN: Accordion·JA: アコーディオン
A vertically stacked list of expandable headers that reveals or hides associated content panels to reduce scroll length and clutter
Table of Contents
Interactive Playground
Tap or drag to interact with the demoQuick Answer
What is Accordion?
A vertically stacked list of expandable headers that reveals or hides associated content panels to reduce scroll length and clutter. It is a core concept in UI Components within UI / UX.
Core Principles
An Accordion applies Progressive Disclosure through a vertically stacked list of headers that expand or collapse their associated content panels. Users can scan the full outline at a glance and open only the sections relevant to their goal.
Accordions typically operate in either single-open mode (one panel active at a time) or multi-open mode (allowing multiple panels to remain open simultaneously for comparison).
Practical Takeaways
- Make the entire header row interactive: Never limit click targets to a tiny chevron icon. Wrap the full header in a
<button>witharia-expandedandaria-controls, and rotate the indicator icon smoothly to reinforce state. - Prefer multi-open when users compare details: Auto-collapsing a previously opened section can cause jarring scroll jumps when users compare policies, specs, or filter groups.
- Animate smoothly with CSS Grid: Transitioning
grid-template-rowsfrom0frto1franimates variable-height panels cleanly without measuring DOM height in JavaScript.
Notable Examples
- Pricing & support FAQs: Presenting dozens of scannable questions without overwhelming the viewport.
- E-commerce filter sidebars: Collapsible facets for brand, size, price range, and rating.
- Mobile product details: Compressing shipping, materials, and return policies into compact expandable rows.