{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sonner",
  "title": "Sonner",
  "author": "andongmin94",
  "description": "A toast notification provider styled for neobrutalist interfaces.",
  "dependencies": [
    "sonner@^2.0.8",
    "next-themes@^0.4.6"
  ],
  "files": [
    {
      "path": "src/components/ui/sonner.tsx",
      "content": "\"use client\";\n\nimport { useTheme } from \"next-themes\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\nimport {\n  CircleCheckIcon,\n  InfoIcon,\n  TriangleAlertIcon,\n  OctagonXIcon,\n  Loader2Icon,\n} from \"lucide-react\";\n\nconst Toaster = ({ toastOptions, ...props }: ToasterProps) => {\n  const { theme = \"system\" } = useTheme();\n\n  return (\n    <Sonner\n      theme={theme as ToasterProps[\"theme\"]}\n      className=\"toaster group\"\n      icons={{\n        success: <CircleCheckIcon className=\"size-4\" />,\n        info: <InfoIcon className=\"size-4\" />,\n        warning: <TriangleAlertIcon className=\"size-4\" />,\n        error: <OctagonXIcon className=\"size-4\" />,\n        loading: <Loader2Icon className=\"size-4 motion-safe:animate-spin\" />,\n      }}\n      style={\n        {\n          fontFamily: \"inherit\",\n          overflowWrap: \"anywhere\",\n        } as React.CSSProperties\n      }\n      toastOptions={{\n        unstyled: true,\n        ...toastOptions,\n        classNames: {\n          toast:\n            \"bg-background text-foreground border-border border-2 font-heading shadow-shadow rounded-base text-[13px] flex items-center gap-2.5 p-4 w-[356px] [&:has(button)]:justify-between\",\n          description: \"font-base\",\n          actionButton:\n            \"font-base border-2 text-[12px] h-6 px-2 bg-main text-main-foreground border-border rounded-base shrink-0\",\n          cancelButton:\n            \"font-base border-2 text-[12px] h-6 px-2 bg-secondary-background text-foreground border-border rounded-base shrink-0\",\n          error: \"bg-black text-white\",\n          loading:\n            \"[&[data-sonner-toast]_[data-icon]]:flex [&[data-sonner-toast]_[data-icon]]:size-4 [&[data-sonner-toast]_[data-icon]]:relative [&[data-sonner-toast]_[data-icon]]:justify-start [&[data-sonner-toast]_[data-icon]]:items-center [&[data-sonner-toast]_[data-icon]]:flex-shrink-0\",\n          ...toastOptions?.classNames,\n        },\n      }}\n      {...props}\n    />\n  );\n};\n\nexport { Toaster };\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "feedback",
    "notification"
  ],
  "type": "registry:ui"
}