{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "border-beam", "title": "Border Beam", "description": "Animated rotating gradient border that highlights any card or container", "files": [ { "path": "registry/pioneerui/border-beam.tsx", "content": "\"use client\"\n\nimport React, { type CSSProperties } from \"react\"\nimport { motion } from \"motion/react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface BorderBeamProps {\n className?: string\n size?: number\n duration?: number\n delay?: number\n colorFrom?: string\n colorTo?: string\n borderWidth?: number\n reverse?: boolean\n initialOffset?: number\n}\n\nexport function BorderBeam({\n className,\n size = 50,\n duration = 6,\n delay = 0,\n colorFrom = \"#ffaa40\",\n colorTo = \"#9c40ff\",\n borderWidth = 1.5,\n reverse = false,\n initialOffset = 0,\n}: BorderBeamProps) {\n return (\n \n \n \n )\n}\n\nexport interface BorderBeamCardProps extends React.HTMLAttributes {\n children?: React.ReactNode\n beamProps?: BorderBeamProps\n}\n\nexport function BorderBeamCard({\n children,\n className,\n beamProps,\n ...props\n}: BorderBeamCardProps) {\n return (\n \n {children}\n \n \n )\n}\n", "type": "registry:ui", "target": "components/pioneerui/border-beam.tsx" } ], "tailwind": { "config": { "theme": { "extend": { "animation": { "border-beam": "border-beam calc(var(--duration)*1s) linear infinite" }, "keyframes": { "border-beam": { "100%": { "--angle": "360deg" } } } } } } }, "type": "registry:ui" }