Skip to content

Sheet

Opens a slide-out panel from the edge of the screen, giving users space to edit settings or fill out forms without leaving the page.

6.5 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Features

Inset Variant

Sheet sliding with inset border margins (variant="inset").

Positions

Sheet positioned along different screen edges (side="left" | "right" | "top" | "bottom").

Accessibility

  • Traps keyboard focus within the slide-out sheet and locks background scrolling.

Keyboard Interactions

API Reference

Sheet

Root component. Alias for Dialog.Root from Base UI.

SheetTrigger

Trigger button that opens the sheet. Alias for Dialog.Trigger from Base UI.

SheetPopup

Popup container that displays the sheet content. Also exported as SheetContent.

Example:

Code

SheetHeader

Container for the sheet title and description. Supports the render prop for polymorphic composition (e.g. render={<Link href="/" />}).

SheetFooter

Footer section for action buttons. Supports the render prop for polymorphic composition.

SheetTitle

Title component. Alias for Dialog.Title from Base UI.

SheetDescription

Description component. Alias for Dialog.Description from Base UI.

SheetPanel

Scrollable content container. Automatically wraps content in a ScrollArea component. Supports the render prop for polymorphic composition.

Example:

Code

SheetClose

Close button component. Alias for Dialog.Close from Base UI.

SheetPortal

Portal component for rendering outside the DOM hierarchy. Alias for Dialog.Portal from Base UI.

SheetBackdrop

Backdrop/overlay component. Also exported as SheetOverlay. Alias for Dialog.Backdrop from Base UI.

SheetViewport

Viewport container that handles screen edge alignment and positioning for the sheet popup. Alias for Dialog.Viewport from Base UI.

Examples