{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"glow-border","type":"registry:ui","title":"Glow Border","description":"A comet of light orbits the element's border.","dependencies":[],"registryDependencies":[],"files":[{"path":"registry/ui/glow-border.tsx","type":"registry:ui","content":"\"use client\";\n\nimport type { ReactNode } from \"react\";\n\n// @property makes the angle animatable. Browsers without it show a static border.\nconst css = `\n@property --glow-border-angle{syntax:\"<angle>\";initial-value:0deg;inherits:false}\n@keyframes glow-border-spin{to{--glow-border-angle:360deg}}\n`;\n\nexport interface GlowBorderProps {\n  children: ReactNode;\n  color?: string;\n  /** Seconds per rotation. */\n  speed?: number;\n  /** Border width in px. */\n  thickness?: number;\n  radius?: number;\n  background?: string;\n  className?: string;\n}\n\nexport function GlowBorder({\n  children,\n  color = \"#c6ff3d\",\n  speed = 4,\n  thickness = 1,\n  radius = 16,\n  background = \"#0a0a0a\",\n  className,\n}: GlowBorderProps) {\n  return (\n    <div\n      className={className}\n      style={{\n        display: \"inline-block\",\n        padding: thickness,\n        borderRadius: radius,\n        background: `conic-gradient(from var(--glow-border-angle), transparent 0 65%, ${color} 85%, transparent 100%), rgba(255,255,255,.08)`,\n        animation: `glow-border-spin ${speed}s linear infinite`,\n      }}\n    >\n      <style href=\"glow-border\" precedence=\"default\">\n        {css}\n      </style>\n      <div style={{ borderRadius: radius - thickness, background, height: \"100%\" }}>{children}</div>\n    </div>\n  );\n}\n"}]}