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

    126
  • Aurora

    Aurora

    120
  • FAQ Section

    FAQ Section

    76
  • Animated Border

    Animated Border

    71
  • Warp Gradient

    Warp Gradient

    60
  • Corner Frame

    Corner Frame

    58
  • Wave Text

    Wave Text

    53
  • Spotlight

    Spotlight

    42

More in Navigation

View all
  • Sidebar

    Sidebar

    384
  • Navbar

    Navbar

    10
  • Footer with Big Wordmark

    Footer with Big Wordmark

    4
  • Astryx Breadcrumb Item

    Astryx Breadcrumb Item

    1
  • Pagination

    Pagination

    106
  • Pagination Ant

    Pagination Ant

    3
  • Numberless Pagination with Text

    Numberless Pagination with Text

    12
  • Capsule Tabs

    Capsule Tabs

    23