Accordion

UI Components

A vertically stacked list of headers that can be clicked to reveal or hide associated content panels, useful for organizing large amounts of content.

Visual Examples

Accordion component with one expanded section
Standard accordion with expanded and collapsed states
Accordion animation sequence
Visual sequence showing the opening animation: Collapsed → Animating → Expanded
Accordion style variations
Different accordion styles: Minimal, Bordered, and Dark Mode

How It Works in Apps/Websites

Accordions save vertical space by hiding content until needed. Each section has a header (clickable) and a panel (expandable). Clicking a header toggles its panel. Accordions can allow multiple panels open simultaneously or exclusive mode where opening one closes others. Common for FAQs, menus, and settings.

How AI Interprets This Term

When you say 'accordion', AI expects: stacked horizontal sections with clickable header bars, each containing title text and expand/collapse icon (chevron or plus/minus). Expanded panels slide down smoothly revealing content. Collapsed state shows only headers.

Prompt Examples

Copy-paste these prompts to use in your AI tools.

Basic

Create an FAQ accordion with 5 questions and answers

Detailed

Design an accordion component: headers with left-aligned text and right-aligned chevron icon that rotates 180deg when expanded. Subtle border between items, smooth 300ms slide animation for content. Allow multiple sections open.

Comparative

Show an accordion (vertical expand/collapse) vs tabs (horizontal content switching) for the same FAQ content

Compare With

Related or contrasting terms to help you understand the differences.

Variants & States

Variants

single expand (exclusive)multi expandnested accordionbordered accordion

States

collapsedexpandedexpanding (animating)collapsing (animating)

Usage Guidelines

When to Use

  • FAQ sections
  • Complex forms with sections
  • Mobile navigation menus
  • Settings and preferences

When NOT to Use

  • Small amounts of content
  • Content users need to compare
  • Critical information that must be visible

Related Terms

faq pagecollapsible