kevingirelli

Sheet

Navigation 7

About

A dialog panel that slides in from an edge of the screen, used for navigation menus, filters, and detail views.

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

import Sheet, {
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/components/ui/sheet";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";

export default function SheetDemo() {
  return (
    <Sheet>
      <SheetTrigger asChild>
        <Button variant="outline">Edit profile</Button>
      </SheetTrigger>
      <SheetContent side="right">
        <SheetHeader>
          <SheetTitle>Edit profile</SheetTitle>
          <SheetDescription>
            Make changes to your profile here. Click save when you&apos;re done.
          </SheetDescription>
        </SheetHeader>
        <div className="flex flex-col gap-4 px-4">
          <div className="flex flex-col gap-2">
            <Label htmlFor="name">Name</Label>
            <Input id="name" defaultValue="Pedro Duarte" />
          </div>
          <div className="flex flex-col gap-2">
            <Label htmlFor="username">Username</Label>
            <Input id="username" defaultValue="@peduarte" />
          </div>
        </div>
        <SheetFooter>
          <SheetClose asChild>
            <Button type="submit">Save changes</Button>
          </SheetClose>
        </SheetFooter>
      </SheetContent>
    </Sheet>
  );
}

Dependencies

More by kevingirelli

View all
  • QR Code

    QR Code

    125
  • Aurora

    Aurora

    115
  • FAQ Section

    FAQ Section

    73
  • Animated Border

    Animated Border

    67
  • Warp Gradient

    Warp Gradient

    58
  • Corner Frame

    Corner Frame

    54
  • Wave Text

    Wave Text

    53
  • Spotlight

    Spotlight

    40

More in Navigation

View all
  • Sidebar

    Sidebar

    365
  • Pagination

    Pagination

    38
  • Navbar

    Navbar

    8
  • Sortable Sidebar Navigation

    Sortable Sidebar Navigation

    76
  • Pagination

    Pagination

    105
  • Oversized 404 Numeral

    Oversized 404 Numeral

    72
  • Tabs like bookmark

    Tabs like bookmark

    76
  • Footer

    Footer

    86