Skip to content

Sheet

Layout

Slide-out panel from any edge. Used for mobile menus and detail views.

LeftRightTopBottom
Open preview

Responsive viewport — resize the window to explore. Direction and density apply only to this preview. Theme applies to the docs too.

Usage

Use Sheet for supporting details or editing alongside a page. Choose a physical side on SheetContent. The side prop does not automatically swap left and right in RTL.

Import
import {
  Sheet,
  SheetTrigger,
  SheetContent,
  SheetHeader,
  SheetTitle,
  SheetDescription,
  SheetFooter,
  SheetClose,
} from "@dashboardpack/core/components/ui/sheet";

Available in the included @dashboardpack/core package. Copy the complete example from Source code for all imports and state. Add "use client" when using hooks or event handlers. See installation and theming for project setup.

API reference

Common props and defaults. Slot-specific props are named below; native elements also accept their standard HTML attributes. The component TypeScript definitions are the complete type reference.

Sheet props
PropType / DefaultDescription
side (SheetContent)left | right | top | bottom

Default: right

Physical screen edge.
open / defaultOpenboolean

Default: false

Controlled or initial open state.
onOpenChange(open: boolean) => void

Default: —

Handle dismissal and opening.
asChild (SheetTrigger / SheetClose)boolean

Default: false

Use your own single child control.

Build with these too