Sheet

Slide-out sheet from the left, right, top or bottom with a backdrop, a titled header, a close button and a scrollable body, rendered as a modal dialog in React.

src/registry/ui/sheet.tsx/r/sheet.json

Installation#

bash
npx shadcn@latest add @minidev/sheet

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/sheet.json

Usage#

tsx
import { Sheet } from "@/components/ui/sheet"

export function Example() {
  return <Sheet />
}

API reference#

Sheet props
PropTypeDefault
openboolean-
onClose() => void-
side"left" | "right" | "top" | "bottom""right"
titlestring-
childrenReact.ReactNode-
classNamestring-

Dependencies#

npm

lucide-react

Built from

All dialog, drawer and popover components

Learn more