We are live on DevHunt: tool of the week contest

check it out

Border Beam

An animated light beam running along the border of an element.

Preview

Interactive Preview
MAGIC

Installation

Usage

tsx
import { BorderBeam } from "@/components/ui/border-beam"

export default function Demo() {
  return (
    <div className="relative w-full max-w-sm p-4 rounded-xl border bg-black text-white">
      <BorderBeam />
      <h3 className="text-lg font-bold">Magic Card </h3>
    </div>
  )
}

Props

PropTypeDefault
sizenumber200
durationnumber8
borderWidthnumber2
colorFromstring#ffaa40
colorTostring#9c40ff