Components
← All components

Collapsible

stimeo--collapsible

A single disclosure region that expands and collapses in place.

  • Disclosure

The stimeo--collapsible controller implements the WAI-ARIA Disclosure pattern for one trigger/content pair. It keeps the trigger's aria-expanded in sync with the content's hidden attribute and data-state, and exposes the content's natural height as --stimeo-collapsible-content-height so the consumer's CSS can animate the height transition. The open lifecycle is ordered so hidden never blocks measurement, and hidden is re-applied after the close transition (or immediately when there is none). Behavior only — styling is owned by this Playground.

running

Keyboard

KeyAction
Enter / Space Toggle the region open or closed (native button).