{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "fade-slide-modal-shadcnui", "type": "registry:component", "title": "Fade & Slide Modal", "description": "Modal with fade backdrop and slide-up animation", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/components/modal/fade-slide.tsx", "content": "\"use client\";\n\nimport { AnimatePresence, motion } from \"framer-motion\";\nimport { X } from \"lucide-react\";\nimport { useState } from \"react\";\n\nexport function FadeSlideModal() {\n const [isOpen, setIsOpen] = useState(false);\n\n return (\n
\n setIsOpen(true)}\n className=\"rounded-lg bg-accent px-8 py-3 font-semibold text-[var(--muted-foreground)] shadow-lg\"\n >\n Open Modal\n \n\n \n {isOpen && (\n <>\n setIsOpen(false)}\n className=\"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm\"\n />\n \n
\n

Modal Title

\n setIsOpen(false)}\n className=\"rounded-lg p-2 transition-colors hover:bg-gray-100 dark:hover:bg-gray-800\"\n >\n \n \n
\n

\n This is a beautiful modal with fade and slide animation.\n

\n
\n setIsOpen(false)}\n className=\"rounded-lg px-4 py-2 transition-colors hover:bg-gray-100 dark:hover:bg-gray-800\"\n >\n Cancel\n \n setIsOpen(false)}\n className=\"rounded-lg bg-accent px-4 py-2 text-[var(--muted-foreground)]\"\n >\n Confirm\n \n
\n \n \n )}\n
\n
\n );\n}\n", "type": "registry:component", "target": "components/uitripled/fade-slide-modal-shadcnui.tsx" } ] }