{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"torch-card","type":"registry:ui","title":"Torch Card","description":"A soft light follows the cursor across the card surface.","dependencies":[],"registryDependencies":[],"files":[{"path":"registry/ui/torch-card.tsx","type":"registry:ui","content":"\"use client\";\n\nimport type { PointerEvent, ReactNode } from \"react\";\n\nexport interface TorchCardProps {\n  children: ReactNode;\n  spotlightColor?: string;\n  /** Spotlight diameter in px. */\n  size?: number;\n  className?: string;\n}\n\nexport function TorchCard({\n  children,\n  spotlightColor = \"rgba(198, 255, 61, 0.18)\",\n  size = 400,\n  className,\n}: TorchCardProps) {\n  const onMove = (e: PointerEvent<HTMLDivElement>) => {\n    const r = e.currentTarget.getBoundingClientRect();\n    e.currentTarget.style.setProperty(\"--spot-x\", `${e.clientX - r.left}px`);\n    e.currentTarget.style.setProperty(\"--spot-y\", `${e.clientY - r.top}px`);\n  };\n\n  return (\n    <div\n      onPointerMove={onMove}\n      className={`group relative overflow-hidden rounded-2xl border border-border bg-card p-8 ${className ?? \"\"}`}\n    >\n      <div\n        aria-hidden\n        className=\"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100\"\n        style={{\n          background: `radial-gradient(${size / 2}px circle at var(--spot-x) var(--spot-y), ${spotlightColor}, transparent 80%)`,\n        }}\n      />\n      <div className=\"relative\">{children}</div>\n    </div>\n  );\n}\n"}]}