Report a problem or share feedback← Catalog
Button Magnetic Button
curatedfreebeui/button-magnetic
Button composed with the Magnetic wrapper for cursor-attracted pull.
$
npx shadcn@latest add @beui/button-magneticnpm deps: clsx, motion, tailwind-merge
Our notes
Cursor attraction for a prominent action. Use sparingly and check touch, keyboard and reduced-motion behavior in the target app.- Source
- beUI (free)
- Kind
- component
- Categories
- button
- Use as
- wrapper — wraps your existing element
- Applies to
- cardbuttonimage
- Motion
- on hover, cursor · medium · motion · medium cost
- Tags
- react, tailwind-v4, motion, motion
- Licence
- MIT — Copyright (c) 2026 Saurabh Chauhan; retain the upstream notice when copying source.
- Live demo
- beui.dev
- Docs
- beui.dev
Similar
Compare all 4 →- Liquid Glass (@samasante/liquid-glass)liquidglass/liquid-glassWrap any styled box in <Glass> (your translucent background is the tint; children stay crisp; optics via the optics prop). True refraction of the live page is Chrome/Edge only (backdrop-filter: url()); Safari/Firefox fall back to frost + tint + edge light. To bend in every browser, give it geometry (size + center) to refract its own children, or refract={copy} / src for images, video and canvas (WebGL). Headless — tint it with your tokens. v0.1.x: pin the version; use one or two lenses per screen and check text contrast over busy backgrounds. React >=18 peer, zero runtime deps, MIT.
- Moving Borderaceternity/moving-borderA border that moves around the container. Perfect for making your buttons stand out.
- Glowing Effectaceternity/glowing-effectCursor-style border glow that follows the pointer. Works on any card.