Components
← All components

Dialog

stimeo--dialog

An accessible modal dialog. Traps focus, locks background scroll, and closes on Esc.

  • Dialog (Modal)

The stimeo--dialog controller implements the WAI-ARIA modal dialog pattern. Opening moves focus into the dialog and traps it there with Tab; the background scroll is locked while open. Esc closes the dialog and focus returns to the trigger. Clicking the backdrop also closes it. The library provides behavior only — styling is owned by this Playground.

running

Keyboard

KeyAction
Tab / Shift+Tab Cycle focus within the dialog (focus trap).
Esc Close the dialog and return focus to the trigger.