Skip to content

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

An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.