Collapsible
Molecule
A single disclosure: one header (its title, or a custom trigger, plus a chevron that rotates when open) over one collapsible content panel.
Playground
Every control sets a real prop of CollapsibleProps. The JSX below updates as you go.
Web
iOS
Android
JSX · CollapsibleProps
Variants
5 examples from src/molecules/collapsible/collapsible.md, each rendered live from its own JSX.
States
Hover, focus and press are pinned so they can be compared side by side; the rest are real props.
Anatomy
1
Trigger
2
Chevron
3
Content
Dimmed parts appear only in some states or variants.
Props
12 props on CollapsibleProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Enter
Space
Expands or collapses
ArrowUp
ArrowDown
Moves between headers
Home
End
First · last header
Semantics
Roles
button
States
disabled
expanded
ARIA on web
aria-expanded
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
Closed by default; pass defaultOpen to start open. Open state is controlled (open + onOpenChange) or uncontrolled (defaultOpen). A description adds a muted secondary line under the title; card wraps the disclosure in an outlined card surface on web and Android (on iOS the default look already is the inset-grouped card, so card is a no-op there). For a set of related, peer sections, reach for an Accordion (a group of these); Collapsible is the standalone primitive.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--fd
--ft
--tx2
--tx3