Skip to content

Collapsible

One disclosure section with a title row that shows or hides its children.

Group: Navigation · Kind: macro · in the lite catalog

open
Advanced
Retries, timeouts and the proxy live here.

Open in the playground

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

exponential-ui-collapsible on Web
exponential-ui-collapsible on iOS
exponential-ui-collapsible on Android
exponential-ui-collapsible on Desktop
Prop Type Required Bindable Description
title string yes – The header text.
open boolean – yes Whether the body shows; bind it. Default false.
count number – – A count shown in the header.
  • on.change: runs an action

None.

many

No basic catalog component maps here.

Box · Icon · Text

Role: group

trigger = button with aria-expanded. The trigger is a button with aria-expanded = open ($a11y).

Keys Action
Enter Space toggle

Recipe parts: Collapsible/root Collapsible/trigger Collapsible/chevron Collapsible/title Collapsible/count Collapsible/body

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

Themes · Write a theme

Icon · Text · Tabs · Segmented · Accordion · Pagination · Breadcrumb · Outline