Sheet / drawer preview

Sheet / drawer

A panel that slides in from the right, left or bottom. From the bottom it is a mobile drawer with a grab handle you drag down to dismiss.

  • Group
    Dialogs and sheets
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 22
npx shadcn@latest add @deank/sheet

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { Sheet } from "@/registry/components/sheet/sheet";

<Sheet open onOpenChange={() => {}} title="…">Label</Sheet>

Props

PropTypeDefaultDescription
openboolean
onOpenChange(open: boolean) => void
titlestring
description?string
side?"right" | "left" | "bottom""right"
children?ReactNode
footer?ReactNode
size?number380Width for side sheets, max height share for bottom sheets is fixed at 85%
inline?booleanfalseRender in place without the modal layer (docs and previews)

When to use

Detail views, filters and settings that keep the page in context (side), and mobile action sheets or pickers (bottom).

When not to use

Short blocking confirmations (use dialog); primary navigation on desktop.

Related

Dialog · Tab bar · Settings panel