← All components
Surfaces / component

Border Glow

A seven-layer mesh and directional cone illuminate the nearest edge.

PLAYGROUND
Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • The included Demo.tsx and shared/demo.css recreate the complete preview. Import the main component to compose your own design.
  • Reduced motion keeps a still effect. Hidden and offscreen instances stop requesting frames; all owned work is cancelled on unmount.
  • Keep space around the card for the outer glow.
React 19CSS

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
childrenReactNodeundefinedContent rendered inside the interactive surface; the demo uses this control as its heading.
glowColorstring40 80 80Glow HSL
backgroundColorstring#120F17Surface color
edgeSensitivitynumber30Edge sensitivity
glowRadiusnumber40Glow radius
glowIntensitynumber1Glow intensity
coneSpreadnumber25Cone width
fillOpacitynumber0.5Mesh fill
borderRadiusnumber28Corner radius
animatedbooleanfalseIntro sweep
colorsstring[]['#c084fc','#f472b6','#38bdf8']One to three colors for the seven radial mesh layers.
pausedbooleanfalseFreeze the current frame; hidden time is excluded.
replayTokennumber0Change this value to restart the effect.
classNamestring''Additional outer classes.