Drawer

Drawer

Components

A panel that slides in smoothly from the edge of the screen, typically used for deep configuration, navigation drawers, or mobile menus.

Slide-Over Drawer

An overlay sheet pattern providing contextual space for forms, detailed inspections, and navigation menus without forcing a complete route change.

Props Reference

PropTypeDefaultDescription
titlestring"Project Settings"Header title rendered at the top of the drawer
descriptionstring""Subheading or explanatory helper text
triggerTextstring"Open Drawer Panel"Button label for opening the drawer
isOpenbooleanfalseControlled open state
onClose() => voidundefinedCallback fired on dismissal

Focus Trapping & Accessibility

  • Keyboard Escape: Pressing the Escape key automatically closes the sheet and restores focus.
  • Scroll Lock: Automatically prevents background document scrolling (body overflow: hidden) while the drawer is open.
  • Backdrop Clicks: Clicking anywhere outside the content panel cleanly dismisses the drawer.