Components
← All components

Drawer

stimeo--drawer

A modal slide-over panel from a screen edge: data-state sync and deferred hidden.

  • Dialog (Modal)

The stimeo--drawer controller implements the WAI-ARIA Dialog (Modal) pattern for a slide-over panel. It is the same modal as the dialog (focus trap, scroll lock, background inert, focus restore) plus the state plumbing a slide needs: data-state (open/closed) is synced on the panel and overlay so CSS can animate, and hidden is applied only after the close transition finishes so the exit animation can play. The placement value is reflected as data-placement (left/right/top/bottom) — the controller never computes coordinates. Escape and an overlay (backdrop) click close it; the edge, slide direction, and easing are your CSS.

running

Keyboard

KeyAction
Esc Close the drawer and return focus to the opener.
Tab / Shift+Tab Cycle focus within the panel (focus trap).