{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-pulse-rings",
  "type": "registry:component",
  "title": "Loader Pulse Rings",
  "description": "Concentric rings expand from a core icon and fade out, staggered so there is always a pulse in flight.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "pulse",
    "rings",
    "signal",
    "connecting",
    "waiting"
  ],
  "docs": "https://hyperblur.dev/effects/loader-pulse-rings",
  "files": [
    {
      "path": "registry/hyperblur/loader-pulse-rings.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-pulse-rings.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderPulseRingsProps extends React.HTMLAttributes<HTMLSpanElement> {\n  size?: number;\n  color?: string;\n  accent?: string;\n  rings?: number;\n  speed?: number;\n  icon?: React.ReactNode;\n  label?: string;\n}\n\nconst css = `\n.hb-qca {\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-qca *, .hb-qca *::before, .hb-qca *::after { box-sizing: border-box; }\n.hb-qca-g {\n  position: relative;\n  flex: none;\n  display: grid;\n  place-items: center;\n  width: var(--hb-qca-s);\n  height: var(--hb-qca-s);\n}\n.hb-qca-ring {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: calc(var(--hb-qca-s) * 0.34);\n  height: calc(var(--hb-qca-s) * 0.34);\n  margin: calc(var(--hb-qca-s) * -0.17) 0 0 calc(var(--hb-qca-s) * -0.17);\n  border-radius: 50%;\n  border: 2px solid var(--hb-qca-c);\n  background: radial-gradient(circle, transparent 55%, color-mix(in srgb, var(--hb-qca-c) 22%, transparent));\n  opacity: 0;\n  animation: hb-qca-expand var(--hb-qca-t) cubic-bezier(0.2, 0.6, 0.3, 1) infinite;\n  animation-delay: calc(var(--i) * var(--hb-qca-t) / var(--hb-qca-n) * -1);\n}\n.hb-qca-core {\n  position: relative;\n  z-index: 1;\n  display: grid;\n  place-items: center;\n  width: calc(var(--hb-qca-s) * 0.34);\n  height: calc(var(--hb-qca-s) * 0.34);\n  border-radius: 50%;\n  background: linear-gradient(145deg, var(--hb-qca-a), var(--hb-qca-c));\n  color: #fff;\n  box-shadow: 0 0 calc(var(--hb-qca-s) * 0.16) color-mix(in srgb, var(--hb-qca-c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);\n  animation: hb-qca-beat var(--hb-qca-t) ease-in-out infinite;\n}\n.hb-qca-core svg { display: block; width: 52%; height: 52%; }\n.hb-qca-l { font-size: 12px; line-height: 1.3; color: #a1a1a1; white-space: nowrap; }\n.hb-qca-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-qca-expand {\n  0% { transform: scale(1); opacity: 0.75; }\n  100% { transform: scale(2.9); opacity: 0; }\n}\n@keyframes hb-qca-beat {\n  0%, 100% { transform: scale(1); }\n  12% { transform: scale(1.1); }\n  30% { transform: scale(1); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-qca-ring { animation: none; opacity: 0.25; transform: scale(1.8); }\n  .hb-qca-ring:nth-child(2) { transform: scale(2.4); opacity: 0.12; }\n  .hb-qca-core { animation: none; }\n}\n`;\n\nfunction Signal() {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d=\"M12 12h.01\" />\n      <path d=\"M8.5 8.5a5 5 0 0 0 0 7\" />\n      <path d=\"M15.5 8.5a5 5 0 0 1 0 7\" />\n      <path d=\"M5.6 5.6a9 9 0 0 0 0 12.8\" />\n      <path d=\"M18.4 5.6a9 9 0 0 1 0 12.8\" />\n    </svg>\n  );\n}\n\nexport function LoaderPulseRings({\n  size = 96,\n  color = \"#2f7bff\",\n  accent = \"#7fb3ff\",\n  rings = 3,\n  speed = 2.4,\n  icon,\n  label,\n  className = \"\",\n  style,\n  ...rest\n}: LoaderPulseRingsProps) {\n  const n = Math.max(1, Math.round(rings));\n  const vars = {\n    \"--hb-qca-s\": `${size}px`,\n    \"--hb-qca-c\": color,\n    \"--hb-qca-a\": accent,\n    \"--hb-qca-n\": n,\n    \"--hb-qca-t\": `${speed}s`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <>\n      <style href=\"hb-loader-pulse-rings\" precedence=\"default\">{css}</style>\n      <span role=\"status\" className={`hb-qca ${className}`} style={vars} {...rest}>\n        <span className=\"hb-qca-g\" aria-hidden=\"true\">\n          {Array.from({ length: n }, (_, i) => (\n            <span key={i} className=\"hb-qca-ring\" style={{ \"--i\": i } as React.CSSProperties} />\n          ))}\n          <span className=\"hb-qca-core\">{icon ?? <Signal />}</span>\n        </span>\n        <span className={label ? \"hb-qca-l\" : \"hb-qca-sr\"}>{label ?? \"Loading\"}</span>\n      </span>\n    </>\n  );\n}\n"
    }
  ]
}