Open the drawer to explore your workspace.
interface QDrawerProps extends HTMLAttributes<HTMLDivElement>
behavior?: QDrawerBehaviorOptions = "default"
bordered?: boolean = falsebreakpoint?: number = BREAKPOINTS.mdelevated?: boolean = undefinednoSwipe?: boolean = falseoverlay?: boolean = falsepersistent?: boolean = falseshowIfAbove?: boolean = undefinedside?: QDrawerSideOptions = "start"
swipeThreshold?: `${number}%` = "30%"value?: boolean = $bindable(false)
width?: number = 360drawerStart snippet and bind value to control
it. The drawer shares space with content on wide screens and becomes modal below its breakpoint.Use the menu button to open or close navigation.
side="start" follows the reading direction; side="end" uses the
opposite edge. Match them with QLayout's drawerStart and drawerEnd snippets. Use left or right when an edge must stay physical.Navigation on one side, details on the other.
overlay opens above content with a scrim. persistent prevents
outside clicks, Escape, and swipes from dismissing it, so provide a close button. bordered adds an edge border; numeric width uses pixels and
defaults to 360. The default responsive breakpoint is 840px; behavior="desktop" or "mobile" forces one presentation. Open the drawer to adjust its width.Compare overlay and standard behavior on a wide screen.
bind:this to call show(), hide(), or toggle(). Bind value when the rest of the page also needs the open state.Drawer state: Closed
view controls how drawers share space with headers and footers. This
example lets the start drawer extend beside both bars. See QLayout for view combinations.Header, drawer, and footer share one layout.
aria-label or aria-labelledby, and label its
toggle button. Modal drawers contain focus and return it when closed; Escape dismisses them
unless persistent is set. Always provide a close action, and use real links for destinations
in your app.