A
Auralix UI

Border Beam

A glowing beam that moves around the border of a container.

Preview

Beam

Installation

bash
npx auralix-ui add border-beam

Usage

Card with Border Beam

tsx
import { BorderBeam } from "@/components/ui/BorderBeam";

<div className="relative h-48 w-full overflow-hidden rounded-xl border bg-background">
  <BorderBeam />
</div>

Props

NameTypeDefaultDescription
sizenumber200Length of the beam.
durationnumber15Duration of the animation in seconds.
borderWidthnumber1.5Width of the border.
colorFromstring"#ffaa40"Start color.
colorTostring"#9c40ff"End color.

Variants

Standard
Standard
Thick & Slow
Thick
Colored
Colored