OonkooUI

Border Beam

Official

An animated beam effect that travels along the border of a container. Perfect for highlighting cards, buttons, or any element that needs attention.

Freeanimationborderbeamglowhighlightcards
2 downloadsOonkooUI Team

Installation

Run the following command:

npx oonkoo add border-beam

Props

BorderBeam Props

PropTypeDefault
sizenumber50
durationnumber6
delaynumber0
colorFromstring"#46CB76"
colorTostring"#f2ff40"
transitionTransition-
classNamestring-
styleReact.CSSProperties-
reversebooleanfalse
initialOffsetnumber0
borderWidthnumber1

Usage

Copy and paste the following code to use this component:

import { BorderBeam } from "@/components/oonkoo/border-beam";

<div className="relative overflow-hidden rounded-xl border p-6">
  <BorderBeam size={100} duration={6} colorFrom="#46CB76" colorTo="#f2ff40" />
  Your card content
</div>

Component Info

Typeelement
Categorycards
TierFree
Last updatedJul 6, 2026