Components
← All components

Drawer

stimeo--drawer

A modal panel sliding in from a screen edge: open state for CSS, exit animation played in full.

  • Core
  • Dialog (Modal)

A modal panel that slides in from a screen edge. Keeping focus inside, stopping background scrolling, holding the background inert and restoring focus work as they do in the plain dialog. On top of that the open and closed state is published for CSS, so the slide in and out can be written in CSS alone. The panel is hidden only after the closing transition finishes, so the exit animation is never cut short. Which edge it comes from is set in the markup, never computed. Esc and a click on the backdrop close it. Position, 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).