Magnetic Button
A production-scale, light + dark Magnetic Button component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add magnetic-buttonLive preview available in the gallery.
Usage
import { MagneticButton } from "@lerpa/ui";
<MagneticButton />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| strength | number | — | |
| children | React.ReactNode | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.