Component & Layout

Drawer Slide

Also called Off-canvas, Side sheet, Slide-over, Navigation drawer

A side panel slides in from the left, right or top edge, pushing or overlaying content.

Mobile nav, settings panels, carts

  • overlay
  • push content
  • left / right / top edge

View demo source

Prompt

Replace [where] with the part of your page and paste the prompt into your AI agent. Each prompt includes the name of the motion, so next time you can simply ask for it by name.

Add a "Drawer Slide" (also called off-canvas or a side sheet) to [where].
The panel should slide in from the side edge over the content while the page behind dims, quick and smoothly decelerating, and slide back out the same way when closed.
Keep keyboard focus inside the open drawer, close it with Escape or a click on the dimmed area, and return focus to the button that opened it.

Replace [where] with the part of your page and paste the prompt into your AI agent. Each prompt includes the name of the motion, so next time you can simply ask for it by name.