What is an accordion?
An accordion is a vertical stack of sections, each with a header that opens or closes its content. Closed, you only see the headers, so a long page becomes a short, scannable list. Open, a section pushes the content below it down, like the bellows of an accordion.
One single open/close section is often called a disclosure (or “collapsible”, “expandable section”). An accordion is a group of them.
You’ll usually see accordions in:
- FAQ and help pages: How do I return an item? Can I change my address?
- Order and booking details: Delivery · Items · Payment · Returns.
- Product pages on mobile: Description · Size & fit · Shipping.
- Settings and filters: Price, Brand, Size in a shop’s filter panel; advanced options in a form.
Anatomy
Delivery
Delivered 6 Oct
Payment
Returns
A web accordion: one section open
- 1
Container
Groups related sections, like the questions of one FAQ. Usually a list with dividers or separate cards.
- 2
Header (trigger)
The whole row is one button. Tapping anywhere on it opens or closes the section, not just the arrow.
- 3
Title
Names the section in a few words. On the web it sits inside a heading, so screen reader users can jump between sections.
- 4
Summary (optional)
A short preview of what is inside, e.g. “Delivered 6 Oct”. Saves a tap for the most common question.
- 5
Chevron (state indicator)
Points down when closed and up when open (or right → down). It must always match the real state.
- 6
Panel (content)
Shown only while the section is open. Can hold text, lists, links and buttons.
- 7
Divider
Separates sections so users can see where one ends and the next begins.
How it differs from similar components
| Component | What it does | Typical use |
|---|---|---|
| Accordion | Shows or hides sections in place; several can be visible | FAQ, order details |
| Tabs | Shows exactly one section at a time, labels side by side | Overview / Specs / Reviews |
| “Show more” link | Reveals the rest of one text block | Long product description |
| Dropdown | Opens a list to pick a value | Country, size |
| Modal / sheet | Opens content on top of the page | Confirmations, forms |
Dev note: Names differ by platform
Designers say accordion, the HTML standard has <details> and <summary>, the WAI-ARIA guide calls one section a disclosure, SwiftUI calls it a DisclosureGroup, and Android developers talk about expandable list items. It’s the same idea: a header that shows or hides content.
Designs & variants
The look differs a lot between platforms, but every variant has a header, a state indicator and a panel. Try them all, with the mouse and with the keyboard (Tab, then Enter or Space).
Help · Orders
FAQ accordion
WebOne question open at a time: opening one closes the others. The whole row is a button inside a heading.
Trail runner 2 · €129
Shipping
Free over €50. Express (next day) €6.90.
Returns
30 days, free label. Refund within 5 days of arrival.
Size & fit
Runs small. If you are between sizes, pick the larger one.
Native details / summary
WebBuilt into HTML: keyboard, state and screen reader support for free. A shared name attribute makes the group exclusive.
Order #4821
Details
- Desk lamp · €39.90
- LED bulb ×2 · €15.00
- Gift wrap · €0.00
Disclosure group
iOSA row with a chevron that turns from right to down. Common in Settings-style lists and sidebars, usually multiple open.
Expandable card
AndroidMaterial 3 has no dedicated accordion component. Apps build expandable list items or cards with an expand icon.
Single or multiple open?
- Multiple open (the default on most platforms): each section opens and closes on its own. Best when users may want to compare sections or keep several open, like filters or order details.
- Single open (an “exclusive” accordion): opening one closes the others. It keeps the page short, but users can’t see two answers at once, and closing a long section above can move the section you just opened (more on that below).
Neither is wrong. The bug is when the product says one thing and the app does another, or when the two modes are mixed on similar pages.
Default open state
Decide, document and test which sections start open:
- All closed is common for FAQs: the questions are the content.
- First section open (or the most important one) helps users see that the sections open at all, and answers the most common question without a tap. On an order page, Delivery is often open.
- Remember the user’s choice only if the product asks for it. Then test that it really comes back after a reload, Back navigation and an app restart (state persistenceState persistenceWhether the app remembers what the user did after navigating away, rotating, or restarting.Open in glossary →).
Check this part
How is an accordion different from tabs?
In a single-open (exclusive) accordion, what happens when you open a section?