{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "border-beam",
  "title": "Border Beam",
  "author": "VenusUI",
  "description": "A light that travels around the border of a card or container.",
  "files": [
    {
      "path": "registry/default/ui/border-beam.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface BorderBeamProps extends React.ComponentProps<\"div\"> {\n  /** Time for the beam to travel once around the border, as a CSS duration. */\n  duration?: string\n  /** Beam color. Any CSS color. */\n  color?: string\n  /** Border thickness in pixels. */\n  borderWidth?: number\n  /** Length of the beam, as a percentage of the full turn (0–100). */\n  length?: number\n}\n\n/**\n * A light that travels around the border of its parent. Place it inside a\n * `relative` element with rounded corners; it follows the parent's radius.\n * Decorative only, and hidden when the user prefers reduced motion.\n */\nfunction BorderBeam({\n  className,\n  duration = \"6s\",\n  color = \"var(--foreground)\",\n  borderWidth = 1.5,\n  length = 12,\n  style,\n  ...props\n}: BorderBeamProps) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"border-beam\"\n      className={cn(\"pointer-events-none absolute inset-0 animate-border-beam rounded-[inherit] motion-reduce:hidden\", className)}\n      style={{\n        \"--border-beam-duration\": duration,\n        padding: borderWidth,\n        background: `conic-gradient(from var(--border-beam-angle), transparent 0%, ${color} ${length}%, transparent ${length * 2}%) border-box`,\n        mask: \"linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0)\",\n        WebkitMask: \"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)\",\n        WebkitMaskComposite: \"xor\",\n        ...style,\n      } as React.CSSProperties}\n      {...props}\n    />\n  )\n}\n\nexport { BorderBeam, type BorderBeamProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-border-beam": "border-beam var(--border-beam-duration) linear infinite"
    }
  },
  "css": {
    "@property --border-beam-angle": {
      "syntax": "'<angle>'",
      "initial-value": "0deg",
      "inherits": "false"
    },
    "@keyframes border-beam": {
      "to": {
        "--border-beam-angle": "360deg"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "effects",
    "cards",
    "animations"
  ],
  "type": "registry:ui"
}