{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sonner", "title": "Sonner", "description": "Opinionated toast component built on the sonner library.", "dependencies": [ "next-themes", "sonner" ], "registryDependencies": [ "vectorstudio-ir/ui/icons" ], "files": [ { "path": "registry/base-nova/ui/sonner.tsx", "content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\nimport type {ToasterProps} from \"sonner\";\nimport { CheckCircleIcon, InfoCircleIcon, ExclamationTriangleIcon, OctagonTimesIcon, SpinnerIcon } from \"@/components/icons\"\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", "target": "@components/sonner.tsx" } ], "categories": [ "feedback" ], "type": "registry:ui" }