{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sheet", "type": "registry:ui", "dependencies": ["@ark-ui/react", "lucide-react"], "files": [ { "path": "./src/components/ui/sheet.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Dialog as SheetPrimitive, dialogAnatomy } from \"@ark-ui/react/dialog\"\nimport { type HTMLArkProps, ark } from \"@ark-ui/react/factory\"\nimport { Portal } from \"@ark-ui/react/portal\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst sheetAnatomy = dialogAnatomy.rename(\"sheet\")\nconst parts = sheetAnatomy.extendWith(\"header\", \"footer\").build()\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetBackdrop = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.BackdropProps\n>(({ className, ...props }, ref) => (\n \n))\nSheetBackdrop.displayName = \"SheetBackdrop\"\n\nconst SheetCloseTrigger = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.CloseTriggerProps\n>(({ className, ...props }, ref) => (\n \n))\nSheetCloseTrigger.displayName = \"SheetCloseTrigger\"\n\nconst SheetContent = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.ContentProps & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n }\n>(({ className, children, side = \"right\", ...props }, ref) => (\n \n \n \n \n {children}\n \n \n Close\n \n \n \n \n))\nSheetContent.displayName = \"SheetContent\"\n\nconst SheetContext = SheetPrimitive.Context\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.DescriptionProps\n>(({ className, ...props }, ref) => (\n \n))\nSheetDescription.displayName = \"SheetDescription\"\n\nconst SheetFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n )\n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n )\n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.TitleProps\n>(({ className, ...props }, ref) => (\n \n))\nSheetTitle.displayName = \"SheetTitle\"\n\nconst SheetTrigger = React.forwardRef<\n React.ElementRef,\n SheetPrimitive.TriggerProps\n>(({ className, ...props }, ref) => (\n \n))\nSheetTrigger.displayName = \"SheetTrigger\"\n\nexport {\n Sheet,\n SheetBackdrop,\n SheetCloseTrigger,\n SheetContent,\n SheetContext,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n}\n", "type": "registry:ui" } ] }