accordion organism experimental Stacked expandable panels with keyboard support and an optional single-open mode.
The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.
layout/accordionname: "Accordion"
short_description: Stacked expandable panels with keyboard support and an optional single-open mode.
long_visual_description: >
A bordered stack of panels; each header toggles its content and rotates a chevron. In
single-open mode, opening one closes the others.
use_cases:
- Expandable content sections.
- FAQ-style disclosure.
- Grouped settings panels.
- Collapsible documentation sections.
- Progressive disclosure of details.
recommended_for:
- General stacked expandable panels.
avoid_for:
- A marketing FAQ (use faq-accordion).
- Tabbed content (use tabs).
markets:
- Global
example_usage: >
Slot accordion-item components into the items slot; each carries its own title, initial open
state, and (rich) panel content. Set single to make it exclusive (one open at a time). The
accordion wires the toggling and keyboard nav across whatever items you place in it. Up/Down move
between headers.
props:
single: When true, only one panel is open at a time.
slots:
items: The accordion-item components to stack; the accordion frames them and wires interaction.
example_prompts:
- "Add an accordion with three expandable panels."
- "Add a single-open accordion."
lifecycle: experimental
content_model: A stack of expandable title/body panels.
theming:
tokens_used:
- --color-surface
- --color-on-surface
- --color-on-surface-muted
- --color-border
- --radius-card
- --font-heading
- --space-card
- --duration-token
editorial_guidance: >
Use clear panel titles; open the most important panel by default. Compose the stack from
accordion-item components — because each item's body is a slot, panels can hold rich content.
relationships:
children:
- layout/accordion-item
related:
- navigation/tabs
- marketing/faq-accordion
categorization:
category: Layout
subcategory: Structure
atomic_type: organism
usage_type: [list-item]
maturity: ai-generated
wcag:
level: AA
notes: Triggers are real buttons within headings with aria-expanded; Up/Down/Home/End move between headers.
keyboard_support: Headers toggle on Enter/Space; Up/Down cycle headers; Home/End jump to first/last.
seo_score: 45
text_direction: both
| Name | Type | Req |
|---|---|---|
| single | boolean |