sopo

Sheet

Component

About

A slide-in side panel (drawer) that overlays the page content, used for edit forms, filters, or supplementary details triggered from a button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sheet to your project and fits it to your theme.

Code

How Sheet is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/components/ui/sheet";
import { Button } from "@/components/ui/sheet-utils/button";

export default function SheetDemo() {
  return (
    <div className="flex min-h-[500px] w-full items-center justify-center bg-background">
      <Sheet>
        <SheetTrigger
          render={<Button variant="outline">Edit profile</Button>}
        />
        <SheetContent>
          <SheetHeader>
            <SheetTitle>Edit profile</SheetTitle>
            <SheetDescription>
              Make changes to your profile here. Click save when you&apos;re
              done.
            </SheetDescription>
          </SheetHeader>
          <SheetFooter>
            <SheetClose render={<Button>Save changes</Button>} />
          </SheetFooter>
        </SheetContent>
      </Sheet>
    </div>
  );
}

Dependencies

More by sopo

View all
  • Hover Card

    Hover Card

    2
  • Animated Select

    Animated Select

  • Animated Tabs

    Animated Tabs

  • Icon Toggle

    Icon Toggle

  • Animated Dialog

    Animated Dialog