Skip to content

    Browse components

    Sheet

    Side panel on the native <dialog> that slides in from any edge with a springy ease, staggers its content in, blurs the backdrop and returns focus on close.

    Open
    Customize
    right
    left
    top
    bottom

    Installation

    npx shadcn@latest add @glint-ui/sheet

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/sheet.json

    Usage

    import { Sheet } from "@/components/ui/sheet";
    
    <Sheet>
      <SheetTrigger>Open</SheetTrigger>
      <SheetContent side="right">
        <SheetHeader>
          <SheetTitle>Edit profile</SheetTitle>
          <SheetDescription>Save when you are done.</SheetDescription>
        </SheetHeader>
        {/* fields */}
        <SheetFooter>
          <SheetClose>Cancel</SheetClose>
        </SheetFooter>
      </SheetContent>
    </Sheet>

    Props

    PropTypeDefaultDescription
    side"right" | "left" | "top" | "bottom""right"Edge the sheet slides in from (SheetContent prop).
    defaultOpenbooleanfalseInitial open state when uncontrolled.
    openReactNode—Controlled open state (with onOpenChange).
    position"fixed" | "absolute""fixed"fixed = true modal via showModal(); absolute = contained in the nearest positioned parent.
    childrenReactNode—SheetTrigger and SheetContent (with SheetHeader, SheetTitle, SheetDescription, SheetFooter, SheetClose).
    classNamestring—Extra classes for the root element.