Border Glow

New

Interactive surface with cursor-tracking mesh gradient edge illumination, outer atmospheric aura, and entry sweep animation.

$ pnpm dlx shadcn@latest add @byphongphan/border-glow
Requires @byphongphan in components.json
card
Loading preview...

Installation

$ pnpm dlx shadcn@latest add @byphongphan/border-glow
Requires @byphongphan in components.json

Usage

import { BorderGlow } from "@/shared/ui/core/border-glow"
export function Example() { return ( <BorderGlow animated borderRadius={20} edgeSensitivity={25} glowRadius={40} className="p-6" > <h3 className="font-semibold text-foreground">Glowing Perimeter Card</h3> <p className="text-sm text-muted-foreground"> Move your mouse near the edges of this card to observe the responsive mesh beam. </p> </BorderGlow> )}

Props

PropTypeDefaultDescription
edgeSensitivitynumber30Distance threshold in percentage before the edge glow triggers.
glowColorstring"40 80 80"HSL string h s l representing outer halo color.
borderRadiusnumber | string20Border radius in pixels or CSS unit.
glowRadiusnumber36Radius of the external blurred atmospheric glow.
glowIntensitynumber1.0Multiplier for the multi-layered box shadow intensity.
coneSpreadnumber25Angle spread percentage for the conic gradient beam.
animatedbooleanfalseTriggers a sweeping intro animation on initial mount.
colorsstring[]["#c084fc", "#f472b6", "#38bdf8"]Array of colors forming the multi-stop mesh gradient.
fillOpacitynumber0.5Opacity of the inner mesh wash near the borders.
contentClassNamestringundefinedCustom classes for the inner content container.

Command Palette

Quick search and commands navigation