← All components
Surfaces / component

Electric Border

A fine, irregular current traces a softly glowing perimeter.

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.
colorstring#5227FFBorder color
speednumber1Motion speed
chaosnumber0.12Noise intensity
borderRadiusnumber24Corner radius
styleCSSPropertiesundefinedAdditional outer styles; reserve space for the glow.
pausedbooleanfalseFreeze the current frame; hidden time is excluded.
replayTokennumber0Change this value to restart the effect.
classNamestring''Additional outer classes.