Animated border component that creates a beautiful beam effect around elements. Perfect for highlighting important content or creating engaging visual effects.
Dashboard analytics terdepan untuk seller Shopee Indonesia
Default orange to purple gradient
SalesMetrix blue to purple
Quick 6-second cycle
Relaxed 20-second cycle
import { BorderBeam } from "@/components/ui/border-beam";<div className="relative rounded-lg border p-8"> <h2>Your Content</h2> <BorderBeam /> </div>
<BorderBeam
size={250} // Size of the beam (default: 200)
duration={12} // Animation duration in seconds (default: 15)
colorFrom="#005cdf" // Start color (default: "#ffaa40")
colorTo="#7c3aed" // End color (default: "#9c40ff")
borderWidth={2} // Border thickness (default: 1.5)
delay={2} // Animation delay in seconds (default: 0)
anchor={90} // Position anchor (default: 90)
/>position: relativerounded-[inherit] to match parent border radius