{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sonner", "dependencies": [ "sonner", "next-themes" ], "files": [ { "path": "registry/radix-nova/ui/sonner.tsx", "content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\"\n\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\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" }