Skip to content
Cards

BorderGlow

The edge nearest the pointer lights up, and starts glowing before the pointer even reaches the card.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Card content.
colorstring"#a78bfa"Glow colour.
reachnumber160Distance from the card, in pixels, where the glow starts.
spreadnumber70Width of the lit part of the border, in degrees.
borderstring"rgba(255,255,255,0.1)"Border colour where the light is not.
classNamestringdark inner cardLook of the inside.