{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-wave-dots",
  "type": "registry:component",
  "title": "Loader Wave Dots",
  "description": "A row of dots rides a sine wave while a color sweep runs through them from the first dot to the last.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "dots",
    "wave",
    "loading",
    "search",
    "css"
  ],
  "docs": "https://hyperblur.dev/effects/loader-wave-dots",
  "files": [
    {
      "path": "registry/hyperblur/loader-wave-dots.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-wave-dots.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderWaveDotsProps extends React.HTMLAttributes<HTMLSpanElement> {\n  size?: number;\n  color?: string;\n  accent?: string;\n  dots?: number;\n  speed?: number;\n  label?: string;\n}\n\nconst css = `\n.hb-qc2 {\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-qc2 *, .hb-qc2 *::before, .hb-qc2 *::after { box-sizing: border-box; }\n.hb-qc2-g {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex: none;\n  width: var(--hb-qc2-s);\n  height: calc(var(--hb-qc2-s) / (var(--hb-qc2-n) * 2 - 1) * 3);\n}\n.hb-qc2-g > i {\n  flex: none;\n  width: calc(var(--hb-qc2-s) / (var(--hb-qc2-n) * 2 - 1));\n  height: calc(var(--hb-qc2-s) / (var(--hb-qc2-n) * 2 - 1));\n  border-radius: 50%;\n  background: var(--hb-qc2-c);\n  animation: hb-qc2-wave var(--hb-qc2-t) ease-in-out infinite;\n  animation-delay: calc(var(--i) * var(--hb-qc2-t) / var(--hb-qc2-n) * -0.9);\n}\n.hb-qc2-l { font-size: 12px; line-height: 1.3; color: #a1a1a1; white-space: nowrap; }\n.hb-qc2-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-qc2-wave {\n  0%, 100% { transform: translateY(70%) scale(0.85); background: var(--hb-qc2-c); opacity: 0.55; }\n  50% { transform: translateY(-70%) scale(1.1); background: var(--hb-qc2-a); opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-qc2-g > i { animation: none; opacity: 0.8; }\n}\n`;\n\nexport function LoaderWaveDots({\n  size = 72,\n  color = \"#2f7bff\",\n  accent = \"#9fc6ff\",\n  dots = 7,\n  speed = 1.4,\n  label,\n  className = \"\",\n  style,\n  ...rest\n}: LoaderWaveDotsProps) {\n  const n = Math.max(2, Math.round(dots));\n  const vars = {\n    \"--hb-qc2-s\": `${size}px`,\n    \"--hb-qc2-c\": color,\n    \"--hb-qc2-a\": accent,\n    \"--hb-qc2-n\": n,\n    \"--hb-qc2-t\": `${speed}s`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <>\n      <style href=\"hb-loader-wave-dots\" precedence=\"default\">{css}</style>\n      <span role=\"status\" className={`hb-qc2 ${className}`} style={vars} {...rest}>\n        <span className=\"hb-qc2-g\" aria-hidden=\"true\">\n          {Array.from({ length: n }, (_, i) => (\n            <i key={i} style={{ \"--i\": i } as React.CSSProperties} />\n          ))}\n        </span>\n        <span className={label ? \"hb-qc2-l\" : \"hb-qc2-sr\"}>{label ?? \"Loading\"}</span>\n      </span>\n    </>\n  );\n}\n"
    }
  ]
}