Electric Border
A border that crackles like a live wire around any content, with a soft glow behind it.
import { ElectricBorder } from "pleate/effects/electric-border";Cards and buttons
Set the radius with a rounded class.
High voltage
The border crackles around any content.
Props
- color
Line and glow color.
stringdefault var(--pl-accent)- thickness
Line width in px.
numberdefault 2- chaos
Displacement in px.
numberdefault 6- speed
Crackle rate; 0 holds still.
numberdefault 1
Accessibility
- The border layers are decorative and hidden from assistive tech.
- Reduced motion keeps the border still.