Magnetic Button
freeCursor-tracking magnetic button with spring physics and an animated shimmer sweep.
#button#spring#hover#micro-interaction
CLI Installation
pnpm dlx shadcn@latest add https://ui.ibidi.dev/r/magnetic-button.jsonProps
| Prop | Type | Default | Description |
|---|---|---|---|
| strength | number | 0.35 | Magnetic pull intensity on hover. |
| variant | 'primary' | 'secondary' | 'ghost' | 'primary' | Visual button style. |