{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "glow-card", "title": "Glow Card", "description": "Card with mouse-tracking radial glow via CSS custom properties", "files": [ { "path": "registry/pioneerui/glow-card.tsx", "content": "\"use client\"\n\nimport React, { useRef, type MouseEvent } from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface GlowCardProps extends React.HTMLAttributes {\n children?: React.ReactNode\n glowColor?: string\n glowSize?: number\n}\n\nexport function GlowCard({\n children,\n className,\n glowColor = \"rgba(99,102,241,0.15)\",\n glowSize = 300,\n ...props\n}: GlowCardProps) {\n const ref = useRef(null)\n\n const handleMouseMove = (e: MouseEvent) => {\n if (!ref.current) return\n const rect = ref.current.getBoundingClientRect()\n const x = e.clientX - rect.left\n const y = e.clientY - rect.top\n ref.current.style.setProperty(\"--glow-x\", `${x}px`)\n ref.current.style.setProperty(\"--glow-y\", `${y}px`)\n ref.current.style.setProperty(\"--glow-opacity\", \"1\")\n }\n\n const handleMouseLeave = () => {\n if (!ref.current) return\n ref.current.style.setProperty(\"--glow-opacity\", \"0\")\n }\n\n return (\n \n {children}\n \n )\n}\n", "type": "registry:ui", "target": "components/pioneerui/glow-card.tsx" } ], "type": "registry:ui" }