{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toast", "type": "registry:ui", "dependencies": ["@ark-ui/react", "class-variance-authority", "lucide-react"], "files": [ { "path": "./src/components/ui/toast.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Toast as ToastPrimitive,\n Toaster as ToasterPrimitive,\n createToaster,\n} from \"@ark-ui/react/toast\"\nimport { type VariantProps, cva } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst toastVariants = cva(\n \"group z-[--z-index] flex h-[--height] w-full scale-[--scale] items-center justify-between space-x-4 rounded-md border bg-background p-6 pr-8 opacity-[--opacity] shadow-lg transition-all will-change-[translate,opacity,scale] [translate:var(--x)_var(--y)_0] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n {\n variants: {\n variant: {\n default: \"border bg-background text-foreground\",\n destructive:\n \"destructive group border-destructive bg-destructive text-destructive-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst Toaster = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ ...props }, ref) => (\n \n))\nToaster.displayName = \"Toaster\"\n\nconst Toast = React.forwardRef<\n React.ElementRef,\n ToastPrimitive.RootProps & VariantProps\n>(({ className, variant, ...props }, ref) => (\n \n))\nToast.displayName = \"Toast\"\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef,\n ToastPrimitive.TitleProps\n>(({ className, ...props }, ref) => (\n \n))\nToastTitle.displayName = \"ToastTitle\"\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef,\n ToastPrimitive.DescriptionProps\n>(({ className, ...props }, ref) => (\n \n))\nToastDescription.displayName = \"ToastDescription\"\n\nconst ToastActionTrigger = React.forwardRef<\n React.ElementRef,\n ToastPrimitive.ActionTriggerProps\n>(({ className, ...props }, ref) => (\n \n))\nToastActionTrigger.displayName = \"ToastActionTrigger\"\n\nconst ToastCloseTrigger = React.forwardRef<\n React.ElementRef,\n ToastPrimitive.CloseTriggerProps\n>(({ className, ...props }, ref) => (\n \n \n \n))\nToastCloseTrigger.displayName = \"ToastCloseTrigger\"\n\nexport {\n createToaster,\n Toast,\n ToastActionTrigger,\n ToastCloseTrigger,\n ToastDescription,\n Toaster,\n ToastTitle,\n}\n", "type": "registry:ui" } ] }