{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "alert-dialog", "title": "Alert Dialog", "description": "A neumorphic alert dialog for confirmations and important actions.", "dependencies": ["@base-ui/react"], "registryDependencies": ["utils", "button"], "files": [ { "path": "src/components/ui/alert-dialog.tsx", "content": "\"use client\";\n\nimport { AlertDialog as BaseAlertDialog } from \"@base-ui/react/alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nconst AlertDialog = BaseAlertDialog.Root;\nconst AlertDialogTrigger = BaseAlertDialog.Trigger;\nconst AlertDialogPortal = BaseAlertDialog.Portal;\n\nconst AlertDialogBackdrop = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAlertDialogBackdrop.displayName = BaseAlertDialog.Backdrop.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n));\nAlertDialogContent.displayName = BaseAlertDialog.Popup.displayName;\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n);\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n HTMLHeadingElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAlertDialogTitle.displayName = BaseAlertDialog.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n HTMLSpanElement,\n Omit<\n React.ComponentPropsWithoutRef,\n \"render\"\n >\n>(({ className, ...props }, ref) => (\n }\n render={}\n className={cn(\"text-sm text-foreground/70\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName = BaseAlertDialog.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAlertDialogAction.displayName = \"AlertDialogAction\";\n\nconst AlertDialogCancel = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nAlertDialogCancel.displayName = \"AlertDialogCancel\";\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogPortal,\n AlertDialogBackdrop,\n};\n", "type": "registry:ui" } ], "type": "registry:ui" }