{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-ring-gradient",
  "type": "registry:component",
  "title": "Loader Ring Gradient",
  "description": "A conic gradient ring with a glowing head that spins while the whole ring breathes in and out.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "spinner",
    "ring",
    "gradient",
    "loading",
    "conic"
  ],
  "docs": "https://hyperblur.dev/effects/loader-ring-gradient",
  "files": [
    {
      "path": "registry/hyperblur/loader-ring-gradient.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-ring-gradient.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderRingGradientProps extends React.HTMLAttributes<HTMLSpanElement> {\n  size?: number;\n  color?: string;\n  accent?: string;\n  thickness?: number;\n  speed?: number;\n  label?: string;\n}\n\nconst css = `\n.hb-qc4 {\n  position: relative;\n  display: inline-flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 0.7em;\n  box-sizing: border-box;\n  font-family: inherit;\n  color: #ededed;\n  vertical-align: middle;\n}\n.hb-qc4 *, .hb-qc4 *::before, .hb-qc4 *::after { box-sizing: border-box; }\n.hb-qc4-g {\n  position: relative;\n  flex: none;\n  width: var(--hb-qc4-s);\n  height: var(--hb-qc4-s);\n  animation: hb-qc4-breathe calc(var(--hb-qc4-t) * 1.8) ease-in-out infinite;\n}\n.hb-qc4-ring {\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: conic-gradient(from 0deg, transparent 0deg, var(--hb-qc4-a) 200deg, var(--hb-qc4-c) 360deg);\n  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--hb-qc4-w)), #000 calc(100% - var(--hb-qc4-w) + 0.5px));\n  mask: radial-gradient(farthest-side, transparent calc(100% - var(--hb-qc4-w)), #000 calc(100% - var(--hb-qc4-w) + 0.5px));\n  animation: hb-qc4-spin var(--hb-qc4-t) linear infinite;\n}\n.hb-qc4-head {\n  position: absolute;\n  inset: 0;\n  animation: hb-qc4-spin var(--hb-qc4-t) linear infinite;\n}\n.hb-qc4-head::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 50%;\n  width: var(--hb-qc4-w);\n  height: var(--hb-qc4-w);\n  margin-left: calc(var(--hb-qc4-w) / -2);\n  border-radius: 50%;\n  background: var(--hb-qc4-c);\n  box-shadow: 0 0 calc(var(--hb-qc4-w) * 3) var(--hb-qc4-c);\n}\n.hb-qc4-glow {\n  position: absolute;\n  inset: calc(var(--hb-qc4-w) * -1);\n  border-radius: 50%;\n  background: radial-gradient(circle, transparent 55%, color-mix(in srgb, var(--hb-qc4-c) 18%, transparent) 72%, transparent 100%);\n  animation: hb-qc4-glow calc(var(--hb-qc4-t) * 1.8) ease-in-out infinite;\n}\n.hb-qc4-l { font-size: 12px; line-height: 1.3; color: #a1a1a1; white-space: nowrap; }\n.hb-qc4-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  padding: 0;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n  border: 0;\n}\n@keyframes hb-qc4-spin { to { transform: rotate(360deg); } }\n@keyframes hb-qc4-breathe {\n  0%, 100% { transform: scale(0.9); }\n  50% { transform: scale(1.04); }\n}\n@keyframes hb-qc4-glow {\n  0%, 100% { opacity: 0.3; }\n  50% { opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-qc4-g, .hb-qc4-glow { animation: none; }\n  .hb-qc4-ring, .hb-qc4-head { animation-duration: 8s; }\n}\n`;\n\nexport function LoaderRingGradient({\n  size = 56,\n  color = \"#2f7bff\",\n  accent = \"#1a2a52\",\n  thickness = 5,\n  speed = 1.1,\n  label,\n  className = \"\",\n  style,\n  ...rest\n}: LoaderRingGradientProps) {\n  const vars = {\n    \"--hb-qc4-s\": `${size}px`,\n    \"--hb-qc4-c\": color,\n    \"--hb-qc4-a\": accent,\n    \"--hb-qc4-w\": `${thickness}px`,\n    \"--hb-qc4-t\": `${speed}s`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <>\n      <style href=\"hb-loader-ring-gradient\" precedence=\"default\">{css}</style>\n      <span role=\"status\" className={`hb-qc4 ${className}`} style={vars} {...rest}>\n        <span className=\"hb-qc4-g\" aria-hidden=\"true\">\n          <span className=\"hb-qc4-glow\" />\n          <span className=\"hb-qc4-ring\" />\n          <span className=\"hb-qc4-head\" />\n        </span>\n        <span className={label ? \"hb-qc4-l\" : \"hb-qc4-sr\"}>{label ?? \"Loading\"}</span>\n      </span>\n    </>\n  );\n}\n"
    }
  ]
}