Skip to content

Accordion

Collapsible sections; the child at index i is the body of item i.

Group: Navigation · Kind: native

example
Created 2 days ago by Ada; 3 comments.
type · multiple
Created 2 days ago by Ada; 3 comments.

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-accordion on Web
exponential-ui-accordion on iOS
exponential-ui-accordion on Android
exponential-ui-accordion on Desktop
Prop Type Required Bindable Description
items [accordionItem] yes – The section headers in order.
type single | multiple – – One section open at a time, or any number. Default "single".
value string – yes The open section’s value (comma-joined when multiple); bind it.
  • on.change: runs an action

None.

many

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: group

headers = buttons with aria-expanded controlling regions

Keys Action
Enter Space toggle the focused section
ArrowDown ArrowUp next/previous header
Home End first/last header

Recipe parts: Accordion/root Accordion/item Accordion/trigger Accordion/content Accordion/count

Keyed by: type :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Collapsible · Tabs · Segmented · Pagination · Breadcrumb · Outline · Stepper