Skip to content
Buttons

NeonEdge

A streak of neon light keeps running round the button edge. With reduced motion the edge stays lit and still.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
colors[string, string]["#a78bfa", "#34f5c5"]Head and tail colours of the light.
backgroundstring"#0d0c14"Fill inside the edge.
edgenumber1.5Edge thickness in pixels.
speednumber3Seconds for one lap.
classNamestringdark pillShape, padding and text. Keep a border radius.