Border Beam

Displays an animated border effect with a glowing beam around the content that adapts to the size of the container.

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/border-beam.json

Usage

import { BorderBeam } from "@/components/ui/border-beam";
<div className="relative rounded-lg shadow-sm"> <BorderBeam lightColor="#FAFAFA" lightWidth={350} duration={8} /> <div className="h-full w-full py-4 px-6 max-w-72 space-y-2"> <h3 className="font-gilroy text-2xl">Border Beam</h3> <p className="text-sm"> This card showcases a dynamic border beam effect, adding a subtle, animated glow around the edges. </p> </div> </div>

Props

border-beam props.

Credits

This component is inspired by Resend