Components
← All components

Dialog

stimeo--dialog

An accessible modal dialog. Keeps focus inside, stops background scrolling, closes on Esc.

  • Core
  • Dialog (Modal)

Implements the WAI-ARIA modal dialog pattern. Opening moves focus into the dialog and keeps it there as you Tab. Background scrolling stops while it is open. Esc closes it and focus returns to the button that opened it. Clicking the backdrop closes it too.

running

Keyboard

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