{
  "title": "Profile Peek",
  "description": "Hover to peek profile with smooth reveal, right from the image.",
  "name": "motion-profile-peek",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [],
  "type": "registry:ui",
  "files": [
    {
      "path": "components/paceui/motion/profile-peek.tsx",
      "type": "registry:ui",
      "content": "import { type ComponentProps, type ReactNode, useState } from \"react\";\n\nimport { AnimatePresence, motion } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\n\ntype ProfilePeekProps = Omit<ComponentProps<\"div\">, \"content\"> & {\n    trigger?: ReactNode;\n    content?: ReactNode;\n};\n\nexport const ProfilePeek = ({ trigger, content, className, ...props }: ProfilePeekProps) => {\n    const [isHovered, setIsHovered] = useState(false);\n\n    return (\n        <div\n            {...props}\n            className={cn(\"relative z-0 inline-flex perspective-[1000px] outline-none\", className)}\n            onMouseEnter={() => setIsHovered(true)}\n            onMouseLeave={() => setIsHovered(false)}\n            onFocus={() => setIsHovered(true)}\n            onBlur={() => setIsHovered(false)}\n            onClick={() => setIsHovered((prev) => !prev)}\n            tabIndex={0}>\n            <AnimatePresence>\n                {isHovered && (\n                    <motion.div\n                        initial={{\n                            opacity: 0,\n                            scale: 0.9,\n                            y: -40,\n                            rotateX: -25,\n                            rotateY: 25,\n                        }}\n                        animate={{\n                            opacity: 1,\n                            scale: 1,\n                            y: 0,\n                            rotateX: 0,\n                            rotateY: 0,\n                        }}\n                        exit={{\n                            opacity: 0,\n                            scale: 0.9,\n                            y: -40,\n                            rotateX: -25,\n                            rotateY: 25,\n                            transition: { duration: 0.3 },\n                        }}\n                        transition={{\n                            type: \"spring\",\n                            stiffness: 420,\n                            damping: 28,\n                            mass: 0.8,\n                        }}\n                        className=\"absolute -top-4 -left-4 z-10 origin-[top_left] transform-3d\">\n                        <motion.div\n                            initial={{ y: -10, opacity: 0 }}\n                            animate={{ y: 0, opacity: 1 }}\n                            transition={{ delay: 0.15, duration: 0.3 }}>\n                            {content}\n                        </motion.div>\n                    </motion.div>\n                )}\n            </AnimatePresence>\n\n            <motion.div\n                animate={{ scale: isHovered ? 1.05 : 1 }}\n                transition={{ duration: 0.3, ease: \"easeInOut\" }}\n                className=\"relative z-10\">\n                {trigger}\n            </motion.div>\n        </div>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "Provides refined UI interactions and accessible controls. Hover to peek profile with smooth reveal, right from the image. Configurable props include: Omit<ComponentProps<\"div\">, \"content\"> & {; trigger?: ReactNode;; content?: ReactNode;. Relies on motion. Optimal for building reusable interface elements and user input flows.",
    "tags": [
      "component",
      "motion",
      "animation"
    ]
  }
}