Skip to content
BENIBIX Learn

Accordion

Design🖼️ User InterfaceData Display

Also known as Expandable Section, Collapsible Panel, Disclosure

A stack of headings. Each one opens to show more below it.

Think of it like

It is like a folded paper fan. Pull one fold open to see what is inside.

Example

A help page lists ten questions. Emma opens only How do I return an item? and reads the answer.

Why it matters

It turns a long page into a short list of headings people can scan.

Definition

An accordion is a stack of headings that each open to show more content below them. Only the headings show at first, so a long page becomes a short list. It suits content most people do not need all of, like an FAQ. Content that everyone needs should not hide inside one, because many people never open it.

Example code

html
<details>
  <summary>How do I return an item?</summary>
  <p>Send it back within 30 days.</p>
</details>
details and summary make an open and close section that works with no script.

Try it

Three working days across Austria, five to the rest of the EU.

1 of 3 open. The folded ones are the ones support gets asked about.

Open one. Anything still folded away is read by far fewer people.

Common mistake

Hiding key facts in a closed section. Most people never open it.

Key takeaways

  1. 1
    Headings first. Content folded away.
  2. 2
    Open what you need. One at a time.
  3. 3
    Not for must-reads. Many never open it.

Learn it properly