{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "glow-border-button",
  "title": "Glow Border Button",
  "author": "VenusUI",
  "description": "A button with a light that keeps circling its border.",
  "files": [
    {
      "path": "registry/default/ui/glow-border-button.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface GlowBorderButtonProps extends React.ComponentProps<\"button\"> {\n  /** Colors of the light that circles the border. Any CSS colors. */\n  colors?: [string, string]\n}\n\n/**\n * A button with a light that keeps circling its border. The light stops (and\n * the border stays visible) with reduced motion. Requires the\n * `animate-glow-border-spin` theme variable and keyframes, which the CLI adds.\n */\nfunction GlowBorderButton({\n  colors = [\"oklch(0.78 0.16 300)\", \"oklch(0.8 0.13 220)\"],\n  className,\n  children,\n  type = \"button\",\n  style,\n  ...props\n}: GlowBorderButtonProps) {\n  return (\n    <button\n      type={type}\n      data-slot=\"glow-border-button\"\n      className={cn(\n        \"group relative inline-flex h-11 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-border p-px text-sm font-medium outline-none select-none\",\n        \"transition-[translate] focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50\",\n        className\n      )}\n      style={{ \"--glow-a\": colors[0], \"--glow-b\": colors[1], ...style } as React.CSSProperties}\n      {...props}\n    >\n      <span\n        aria-hidden=\"true\"\n        className=\"absolute top-1/2 left-1/2 aspect-square w-[max(200%,8rem)] -translate-x-1/2 -translate-y-1/2 animate-glow-border-spin bg-[conic-gradient(from_0deg,transparent_0%,var(--glow-a)_15%,var(--glow-b)_30%,transparent_45%)] motion-reduce:animate-none\"\n      />\n      <span className=\"relative inline-flex size-full items-center justify-center gap-2 rounded-[11px] bg-background px-6 text-foreground transition-colors group-hover:bg-muted [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\">\n        {children}\n      </span>\n    </button>\n  )\n}\n\nexport { GlowBorderButton, type GlowBorderButtonProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-glow-border-spin": "glow-border-spin 4s linear infinite"
    }
  },
  "css": {
    "@keyframes glow-border-spin": {
      "to": {
        "rotate": "1turn"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "buttons",
    "animations"
  ],
  "type": "registry:ui"
}