Search
Search for a page

Sheet

Multi-directional modal sheets that slide fluidly from the edges of the screen, styled with backdrop blurs and clean dismiss triggers.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/sheet.json

Usage

Select a slide-in direction and open the sheet.

Best practices

The best practices when using sheet components.

  • Use the bottom drawer layout on mobile screens to ensure thumb-friendly actions.
  • Keep the drawer content scrollable if it exceeds the vertical screen height.
  • Display a clear close action icon or footer cancel logoButton for quick dismissals.
  • For actions requiring explicit user confirmation, use a logoDialog instead to block background interaction entirely.

Components & Props

Sheet sub-components and customization parameters.

Component / PropType / RoleDefaultDescription
Sheet.RootMaster controller-Coordinates viewport opening states, overlays, focus locks, and blurs.
Sheet.TriggerTrigger element-The clickable button or handler that triggers sheet display.
Sheet.ContentDrawer panel-The slide-over container. Takes `side="top" | "bottom" | "left" | "right"`.
showCloseButtonbooleantrueDisplays standard top-right close icon trigger.
liquidGlassbooleanfalseEnables physical liquid glass refraction distortion (Chromium only).
Previous Select
Give feedback
Next Slider