{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toast-notification-shadcnui", "type": "registry:page", "title": "Toast Notification", "description": "Animated toast notification popup", "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/page/notifications/toast-notification.tsx", "content": "\"use client\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Card } from \"@/components/ui/card\";\nimport { AnimatePresence, motion } from \"framer-motion\";\nimport { CheckCircle2, X } from \"lucide-react\";\nimport { useState } from \"react\";\n\nexport function ToastNotification() {\n const [isVisible, setIsVisible] = useState(false);\n\n const showToast = () => {\n setIsVisible(true);\n setTimeout(() => setIsVisible(false), 3000);\n };\n\n return (\n
\n \n\n \n {isVisible && (\n \n \n \n
\n

Success!

\n

\n Your changes have been saved.\n

\n
\n setIsVisible(false)}\n className=\"flex-shrink-0 rounded-sm opacity-70 hover:opacity-100\"\n >\n \n \n
\n \n )}\n
\n
\n );\n}\n", "type": "registry:page", "target": "components/uitripled/toast-notification-shadcnui.tsx" } ] }