{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button-neon-pulse",
  "type": "registry:component",
  "title": "Button Neon Pulse",
  "description": "A neon outline with a breathing glow that quickens on hover. Each click sends a ring ripple out from the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "buttons",
    "button",
    "neon",
    "glow",
    "pulse",
    "ripple",
    "click"
  ],
  "docs": "https://hyperblur.dev/effects/button-neon-pulse",
  "files": [
    {
      "path": "registry/hyperblur/button-neon-pulse.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/button-neon-pulse.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface ButtonNeonPulseProps\n  extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, \"color\"> {\n  variant?: \"outline\" | \"filled\";\n  accent?: string;\n  size?: \"sm\" | \"md\" | \"lg\";\n  loading?: boolean;\n}\n\ninterface Ripple {\n  id: number;\n  x: number;\n  y: number;\n}\n\nconst css = `\n.hb-qa5 {\n  --hb-qa5-c: #ff3df0;\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 0.6em;\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0.8em 1.8em;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 600;\n  letter-spacing: 0.03em;\n  line-height: 1.2;\n  color: color-mix(in srgb, var(--hb-qa5-c) 55%, #ffffff);\n  background: color-mix(in srgb, var(--hb-qa5-c) 5%, #070707);\n  border: 1.5px solid var(--hb-qa5-c);\n  border-radius: 999px;\n  text-shadow: 0 0 10px color-mix(in srgb, var(--hb-qa5-c) 70%, transparent);\n  box-shadow: inset 0 0 12px color-mix(in srgb, var(--hb-qa5-c) 28%, transparent), 0 0 14px color-mix(in srgb, var(--hb-qa5-c) 35%, transparent);\n  animation: hb-qa5-breathe 2.8s ease-in-out infinite;\n  cursor: pointer;\n  isolation: isolate;\n  user-select: none;\n  -webkit-tap-highlight-color: transparent;\n  touch-action: manipulation;\n  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, color 0.25s ease;\n}\n.hb-qa5[data-size=\"sm\"] { font-size: 13px; }\n.hb-qa5[data-size=\"lg\"] { font-size: 17px; }\n.hb-qa5[data-variant=\"filled\"] {\n  color: #08060a;\n  background: var(--hb-qa5-c);\n  text-shadow: none;\n}\n.hb-qa5-rc {\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  overflow: hidden;\n  border-radius: inherit;\n  pointer-events: none;\n}\n.hb-qa5-r {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  margin: -10px 0 0 -10px;\n  border: 2px solid color-mix(in srgb, var(--hb-qa5-c) 40%, #ffffff);\n  border-radius: 50%;\n  box-shadow: 0 0 14px var(--hb-qa5-c);\n  transform: scale(0.2);\n  opacity: 0.95;\n  animation: hb-qa5-ring 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;\n}\n.hb-qa5-t { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; }\n.hb-qa5:hover:not(:disabled), .hb-qa5:focus-visible:not(:disabled) {\n  background: color-mix(in srgb, var(--hb-qa5-c) 14%, #070707);\n  color: #ffffff;\n}\n.hb-qa5[data-variant=\"filled\"]:hover:not(:disabled), .hb-qa5[data-variant=\"filled\"]:focus-visible:not(:disabled) {\n  background: color-mix(in srgb, var(--hb-qa5-c) 82%, #ffffff);\n  color: #08060a;\n}\n.hb-qa5:hover:not(:disabled), .hb-qa5:focus-visible:not(:disabled) { animation-duration: 1.4s; }\n.hb-qa5:active:not(:disabled) { transform: scale(0.96); }\n.hb-qa5:focus-visible { outline: 2px solid color-mix(in srgb, var(--hb-qa5-c) 60%, #ffffff); outline-offset: 4px; }\n.hb-qa5:disabled { cursor: not-allowed; }\n.hb-qa5:disabled:not([aria-busy=\"true\"]) { opacity: 0.4; }\n.hb-qa5:disabled { animation: none; box-shadow: inset 0 0 8px color-mix(in srgb, var(--hb-qa5-c) 18%, transparent); }\n.hb-qa5-sp {\n  width: 1em;\n  height: 1em;\n  flex: none;\n  border: 2px solid currentColor;\n  border-right-color: transparent;\n  border-radius: 50%;\n  animation: hb-qa5-spin 0.7s linear infinite;\n}\n@keyframes hb-qa5-spin { to { transform: rotate(360deg); } }\n@keyframes hb-qa5-breathe {\n  0%, 100% {\n    box-shadow: inset 0 0 10px color-mix(in srgb, var(--hb-qa5-c) 22%, transparent), 0 0 8px color-mix(in srgb, var(--hb-qa5-c) 28%, transparent), 0 0 0 0 transparent;\n  }\n  50% {\n    box-shadow: inset 0 0 16px color-mix(in srgb, var(--hb-qa5-c) 40%, transparent), 0 0 20px color-mix(in srgb, var(--hb-qa5-c) 60%, transparent), 0 0 44px 2px color-mix(in srgb, var(--hb-qa5-c) 24%, transparent);\n  }\n}\n@keyframes hb-qa5-ring {\n  to { transform: scale(9); opacity: 0; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-qa5 { transition: none; }\n  .hb-qa5 { animation: none; }\n  .hb-qa5-r { animation-duration: 0.01s; }\n  .hb-qa5:active:not(:disabled) { transform: none; }\n  .hb-qa5-sp { animation-duration: 1.6s; }\n}\n`;\n\nexport function ButtonNeonPulse({\n  children = \"Get tickets\",\n  variant = \"outline\",\n  accent = \"#ff3df0\",\n  size = \"md\",\n  loading = false,\n  disabled = false,\n  type = \"button\",\n  className = \"\",\n  style,\n  onClick,\n  ...rest\n}: ButtonNeonPulseProps) {\n  const [ripples, setRipples] = React.useState<Ripple[]>([]);\n  const counter = React.useRef(0);\n\n  function handleClick(e: React.MouseEvent<HTMLButtonElement>) {\n    const rect = e.currentTarget.getBoundingClientRect();\n    const keyboard = e.detail === 0;\n    const x = keyboard ? rect.width / 2 : e.clientX - rect.left;\n    const y = keyboard ? rect.height / 2 : e.clientY - rect.top;\n    counter.current += 1;\n    const id = counter.current;\n    setRipples((list) => [...list.slice(-3), { id, x, y }]);\n    onClick?.(e);\n  }\n\n  const vars = { \"--hb-qa5-c\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <>\n      <style href=\"hb-button-neon-pulse\" precedence=\"default\">{css}</style>\n      <button\n        type={type}\n        className={`hb-qa5 ${className}`}\n        style={vars}\n        data-variant={variant}\n        data-size={size}\n        disabled={disabled || loading}\n        aria-busy={loading || undefined}\n        onClick={handleClick}\n        {...rest}\n      >\n        <span className=\"hb-qa5-rc\" aria-hidden=\"true\">\n          {ripples.map((r) => (\n            <span\n              key={r.id}\n              className=\"hb-qa5-r\"\n              style={{ left: `${r.x.toFixed(1)}px`, top: `${r.y.toFixed(1)}px` }}\n              onAnimationEnd={() => setRipples((list) => list.filter((item) => item.id !== r.id))}\n            />\n          ))}\n        </span>\n        <span className=\"hb-qa5-t\">\n          {loading ? <span className=\"hb-qa5-sp\" aria-hidden=\"true\" /> : null}\n          {children}\n        </span>\n      </button>\n    </>\n  );\n}\n"
    }
  ]
}