Skip to main content
ContainersLevel 1

Accordion

手风琴 / 折叠面板

WebMobileDesktopDifficulty: Easy

Click a heading and the content below it expands; click again and it collapses back out of the way.

01

Live Demo

Actually clickable

Originals run about 3–5MB, thumbnails around 200KB. When you clean up you can choose "delete the original, keep the thumbnail" — browsing stays unaffected while you reclaim most of the space.

Yes. Deleted photos move to "Recently deleted" and stay there for 30 days. Pick "Restore" from that folder and they go back where they were.

The system compares each image's content hash and capture settings. The same photo at different resolutions or in different formats counts as a duplicate, and you can choose which version has the best quality.

Click a heading to expand, click again to collapse. Several can be open at once — that's what makes it an Accordion.

What you just saw:The question-and-answer list on an FAQ page, the "About this Mac ›" groups in a settings screen, the collapsible entries of a help center — click a heading and another paragraph appears below it.

02

What it actually is

The purpose of an accordion is to compress a lot of information into a smaller space. It can allow several panels open at once, or only one at a time — the latter is strictly speaking closer to a Collapsible. The classic use is an FAQ.

accordiondisclosure listexpandable listfaq accordioncollapse panel
03

Anatomy · What it's made of

  1. Header标题行

    The entire row is clickable, height ≥44px

  2. Label标题文字

    The heading text — says what is inside

  3. Chevron箭头

    Points right → points down, rotating 180°

  4. Content内容区

    Revealed when expanded

  5. Expanded State展开态

    Chevron rotated, content visible

04

When to Use

When it fits, and when it doesn't
Accordion usage recommendations
SituationUse it?
There is a lot of content that can be compressed into a small space (FAQ)Yes
Users do not need to see everything at onceYes
Entries vary in length and cannot be aligned into a tableYes
Users need to compare the content of all entries side by sideNo
The content is only two or three lines — just show it directlyDepends

If users need to compare details across several entries, hiding them behind clicks only adds work.

Using an accordion when there is a single entry is pure packaging with no payoff.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add an FAQ accordion: multiple entries can be open at the same time, the whole heading row is clickable, the chevron on the right rotates 180° when expanded, and the content uses a grid-row transition.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add something that expands when you click it.

Say this instead

Add an FAQ accordion: multi-open, headings as button[aria-expanded] with a full-row hit area ≥48px, chevron rotating 180° when expanded, content animated with a grid-template-rows 0fr→1fr height transition.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.