{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "dialog", "title": "Dialog", "description": "A neumorphic dialog/modal component.", "dependencies": ["@base-ui/react", "@phosphor-icons/react"], "registryDependencies": ["utils"], "files": [ { "path": "src/components/ui/dialog.tsx", "content": "import { Dialog as BaseDialog } from \"@base-ui/react/dialog\";\nimport { X } from \"@phosphor-icons/react/dist/ssr\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Dialog = BaseDialog.Root;\nconst DialogTrigger = BaseDialog.Trigger;\n\nconst DialogClose = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n Close\n \n));\nDialogClose.displayName = \"DialogClose\";\n\nconst DialogContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n {children}\n \n \n \n));\nDialogContent.displayName = \"DialogContent\";\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n HTMLHeadingElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogTitle.displayName = \"DialogTitle\";\n\nconst DialogDescription = React.forwardRef<\n HTMLSpanElement,\n Omit, \"render\">\n>(({ className, ...props }, ref) => (\n }\n render={}\n className={cn(\"text-sm text-foreground/70 mt-1.5\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = \"DialogDescription\";\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n DialogClose,\n};\n", "type": "registry:ui" } ], "type": "registry:ui" }