Skip to content
Buttons

Magnetix

A button that leans toward the pointer. The label leans a little further, so it feels pulled, not dragged.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—Button label.
onClick() => void—Click handler.
strengthnumber0.35How far the button follows the pointer, 0 to 1.
labelStrengthnumber0.15How far the label follows, on top of the button.
fieldnumber40Extra pixels around the button where the pull starts.
classNamestringlight pillReplaces the default look.