Skip to content
Buttons

OrbitButton

A glowing dot circles the button, passing behind it on top and in front below. Hover or focus speeds it up.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
colorstring"#a78bfa"Colour of the dot.
speednumber4Seconds for one lap at rest.
gapnumber10Pixels between the edge and the orbit.
classNamestringdark violet pillReplaces the default look.