Drawer
Displays content in a slide-out panel anchored to any edge of the viewport.
Static SSR: trigger, close, overlay, directional drag dismissal, Presence, and modal scroll locking work without a circuit. Background scrolling stays locked until the panel and overlay finish closing. Listen for
shardui:drawer-open-change or call setOpen; .NET callbacks remain interactive-only.
Examples
Scrollable Content
Use a column layout inside DrawerContent and make the body section scrollable when you have longer content.
Directions
Set Direction to Top, Right, Bottom, or Left. The content exposes data-vaul-drawer-direction for direction-specific Tailwind overrides.
Controlled State
Use @bind-Open when you want to coordinate the drawer state with the rest of your page.
Open state: closed