Docs
Border Beam

Border Beam

Animated rotating gradient border that highlights any card or container.

Border Beam

An animated rotating gradient border that brings attention to any card or container.

Installation

Usage

import { BorderBeamCard, BorderBeam } from "@/components/pioneerui/border-beam"
 
// Pre-built card wrapper
export default function Card() {
  return (
    <BorderBeamCard>
      <h3>Your card content</h3>
    </BorderBeamCard>
  )
}
 
// Or add BorderBeam to any existing container
function CustomCard() {
  return (
    <div className="relative rounded-xl p-6">
      Content here
      <BorderBeam colorFrom="#6366f1" colorTo="#ec4899" duration={8} />
    </div>
  )
}

Props — BorderBeam

PropTypeDefaultDescription
sizenumber50Beam head size in pixels
durationnumber6Animation duration in seconds
delaynumber0Animation start delay in seconds
colorFromstring#ffaa40Gradient start color
colorTostring#9c40ffGradient end color
borderWidthnumber1.5Border width in pixels
reversebooleanfalseReverse animation direction
initialOffsetnumber0Starting position (0–100%)