Accordion
Component preview
A vertical set of headings that reveals or hides each associated content section.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: expandable sections, collapsible panels, disclosure list
Try it
Compare all three behaviors
Shared comparison scenario: A project workspace reveals related content in place while preserving the user's position on the page.
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Accordion
Accordion reveals sections beneath their headings; Tabs swaps one peer panel, while Segmented control selects one compact value.
Your task
Expand Refunds, move to Payment methods with keyboard, open it, and collapse Refunds again.
Edge case to verify
A mandatory open section cannot be collapsed and communicates that rule without presenting a false control.
Mission
Expand Refunds, move to Payment methods with keyboard, open it, and collapse Refunds again.
This answer must remain visible to complete the process.
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Heading
A meaningful heading that introduces the message or disclosure.
Reveal and hide a section
Activating a header reveals or hides its associated content while exposing expanded state.
Navigate with arrows
Arrow keys move through related items according to their visual orientation.
Refunds collapsed
Refunds collapsed
Refunds expanded
Refunds expanded
Refunds collapsed → Refunds expanded
Activating the Refunds header exposes its answer immediately after the header.
Refunds expanded → Refunds collapsed
Activating the expanded Refunds header hides only its associated answer.
Accordion.Root
Equivalence caveat: Radix supplies disclosure state and keyboard support; heading levels, single or multiple expansion, and region use remain content decisions.
Verify binding sourceW3C WAI · standard · 2026-07-16
Claim covered: Accordion: accordion header and panel relationships plus expansion and keyboard guidance.
Radix Primitives · documentation · 2026-07-16
Claim covered: Accordion: documented Radix Accordion parts, single or multiple expansion, and keyboard behavior.
Verified on 2026-07-16 · rev. 1