Accordion

A group of native disclosures that reveals supporting content in place. Accordion is the component; a single item is the collapse/disclosure use case, while repeated items can expand independently or share one native single-open group.

Accordion · Default
What is included?

Tokens, framework-free component CSS, machine-readable contracts, brand slots, and the specimen are included.

Can I replace the brand?

Yes. Replace the canonical brand assets and update semantic roles so components inherit the new direction.

Does it require JavaScript?

No JavaScript is required for disclosure state or keyboard activation because the reference uses native details and summary.

Single-open is the default: one document-group-unique name connects the items, while the quiet default hover lifts only the chevron.

Appearance

Appearance changes only how adjacent items are grouped. Divided is the compact default, outlined turns every item into a discrete container, and bare uses spacing without drawing a boundary.

Accordion · Outlined
Profile information

Update your display name, contact details, and profile image.

Security

Manage your password, passkeys, and active sessions.

Billing

View invoices, update your payment method, and manage your subscription plan.

Each item owns border.default and radius.container; space.3 separates the single-open containers without changing their content inset.

Accordion · Bare
Design tokens

Semantic roles connect the brand foundations to every component recipe.

Component contracts

Machine-readable anatomy, states, bindings, keyboard behavior, and usage rules.

Reference CSS

Framework-free styles prove that the contracts resolve into working interfaces.

Bare keeps the same single-open default, removes visible boundaries and extra group gap, and relies on primary headings plus chevrons for hierarchy.

AppearanceModifierBoundaryUsage
DividedShared subtle hairlinesCompact continuous lists and dense reference content
Outlined--outlinedBordered, rounded items with gapsDiscrete settings, FAQ, or content groups that need stronger separation
Bare--bareNo visible line or containerSpacious editorial compositions with clear surrounding hierarchy

Expansion

Expansion is a markup choice rather than a visual modifier. Single-open is the default: repeat one non-empty, document-group-unique name across siblings. Omit name when comparison requires multiple items to remain open.

ExpansionMarkupBehaviorUsage
Singledetails name="billing-faq"Opening one item closes its named siblingDefault for FAQs, settings, and compact progressive disclosure
MultipledetailsAny number of items may remain openUse when users need to compare or scan expanded content
Accordion · Multiple open
Free plan

For evaluating the system and building a small personal project.

Team plan

For shared product work with team-level access and governance.

Enterprise plan

For organization-wide controls, support, and deployment requirements.

Omitting name opts into multiple-open behavior, so related answers can remain visible for comparison without specimen JavaScript.

Usage notes

Disclosure is useful only when hiding the content does not hide the task.

VerdictRule
DoUse Accordion for supporting content that can be understood from concise labels and revealed in place; keep essential instructions, errors, and primary page content visible.
DoUse one Accordion item for a single collapse/disclosure control; keep Accordion as the canonical component name.
DoDefault to single-open with one document-group-unique name; omit it when users need to compare expanded content.
DoChoose divided for compact lists, outlined for distinct item containers, and bare for low-chrome compositions; appearance does not change behavior.
DoKeep summary labels short and unique, and put links, controls, badges, or changing content inside the expanded content region.
Don’tAdd redundant ARIA disclosure state to native details/summary or replace their behavior with specimen scripting.
Don’tNest disclosure items, hide essential content, or put secondary actions inside the summary row.
Don’tAdd a panel surface, width, or surrounding spacing to Accordion; its parent composition owns those concerns.