Skip to content

Drawer

The Drawer component provides a sliding panel that emerges from any edge of the screen.
It is useful for displaying menus, options, or additional content without leaving the current view.

  • Flexible positioning: Supports top, bottom, left, and right.
  • Overlay support: Click outside the drawer to close it.
  • Customizable content: Include headers, links, forms, or interactive elements.
  • Fixed or dynamic: Can be used as a fixed drawer or controlled programmatically.
logo


logo
logo
logo
logo
Prop / SlotTypeDefaultDescription
isOpenbooleanfalseControls whether the drawer is visible.
position"top" | "bottom" | "left" | "right""right"Side of the screen from which the drawer slides in.
Drawer.HeadercomponentOptionalHeader content of the drawer (title, logo, close button).
Drawer.ContentcomponentOptionalMain content inside the drawer (links, forms, interactive elements).
Drawer.OverlaycomponentOptionalBackground overlay that detects clicks to close the drawer.
  • Use overlay to focus attention and allow easy dismissal.
  • Keep drawer content concise for better user experience.
  • Combine with buttons or triggers to open drawers programmatically.
  • Ensure drawers do not block important content on mobile screens.
  • Use consistent positioning to avoid user confusion.