Skip to content
Navigation

MagneticMenu

Links lean toward the pointer, the label leaning a little further, and a soft blob glides to whichever link you hover or focus.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href }[]—The links.
activestringfirst hrefhref of the active link (dot under it).
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
orientation"horizontal" | "vertical""horizontal"Row or column.
strengthnumber0.3How far a link follows the pointer, 0 to 1.
colorstring"rgba(167,139,250,0.18)"Hover blob colour.
accentstring"#a78bfa"Active dot colour.
labelstring"Menu"Name read out by screen readers.
classNamestring"text-sm text-white/70"Text size and colour.