{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sonner", "title": "Sonner", "description": "Toast notification system with Phosphor icons", "dependencies": [ "sonner", "next-themes", "@phosphor-icons/react" ], "registryDependencies": [ "utils" ], "files": [ { "path": "registry/new-york/ui/sonner.tsx", "content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\"\nimport { CheckCircle, Info, Warning, XCircle, SpinnerGap } from \"@phosphor-icons/react\"\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n \n ),\n info: (\n \n ),\n warning: (\n \n ),\n error: (\n \n ),\n loading: (\n \n ),\n }}\n style={\n {\n \"--normal-bg\": \"var(--popover)\",\n \"--normal-text\": \"var(--popover-foreground)\",\n \"--normal-border\": \"var(--border)\",\n \"--border-radius\": \"var(--radius)\",\n } as React.CSSProperties\n }\n toastOptions={{\n classNames: {\n toast: \"cn-toast\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n", "type": "registry:ui" } ], "type": "registry:ui" }