19 lines
805 B
JSON
19 lines
805 B
JSON
{
|
|
"name": "sonner-style-rich-colors",
|
|
"title": "sonner-style-rich-colors",
|
|
"type": "registry:block",
|
|
"registryDependencies": [
|
|
"https://retroui.dev/r/sonner.json",
|
|
"https://retroui.dev/r/button.json"
|
|
],
|
|
"dependencies": ["lucide-react"],
|
|
"files": [
|
|
{
|
|
"path": "preview/components/sonner-style-rich-colors.tsx",
|
|
"target": "components/retroui/preview/sonner-style-rich-colors.tsx",
|
|
"type": "registry:block",
|
|
"content": "import { Button } from \"@/components/retroui\";\nimport { toast } from \"sonner\";\n\nexport default function SonnerStyleRichColors() {\n const onClick = () => {\n toast.success(\"Congrats man 🎉\", {\n richColors: true,\n });\n };\n\n return <Button onClick={onClick}>Show Toast (Rick colors)</Button>;\n}\n"
|
|
}
|
|
]
|
|
}
|