Drawer
A panel that slides in from the right so you can inspect one thing without leaving the page: a tool call, a task event, a knowledge chunk, a long form.
When to use
Section titled “When to use”- Use it for detail you read next to the list it came from. Decisions and short forms go in a
Modal. A drawer never asks a yes or no question.
What the consumer provides
Section titled “What the consumer provides”title(h3size), the body content, and optional footer actions. Footer actions aresubtleandoutline. Add afilledprimary only when the drawer holds a form.size: 420 by default, 560 for forms, full width belowbp-xs.
Behaviour
Section titled “Behaviour”surface-100,shadow-lg, left cornersradius-xl, overoverlay. It slides in over 240ms and out over 160ms.- It traps focus, so Tab stays inside. Escape and the scrim (the dark layer behind) close it. Focus then returns to the control that opened it. The URL holds the selected item, so a reload opens it again.
- The body scrolls. The head and footer stay in place.
Tokens
Section titled “Tokens”surface-100, overlay, shadow-lg, radius-xl, border, ink, ink-muted, z-overlay, z-modal.
Mantine
Section titled “Mantine”<Drawer position="right" size={420} opened onClose title overlayProps={{ backgroundOpacity: 0.48 }}>.