Skip to contentFacade Pro is $149 once during launch, then $199. Lifetime updates.
Facade
Browse the library

Components / Buttons

Magnetic button

Free

Button that pulls toward the cursor with spring physics while its label drifts slightly further for depth.

Installation

$npx shadcn@latest add https://facadeui.com/r/magnetic-button.json

Usage

import { MagneticButton } from "@/components/facade/magnetic-button";

export default function Page() {
  return <MagneticButton />;
}

Props

MagneticButtonProps is exported, so you can extend or wrap it. Every prop has a default; <MagneticButton /> renders the example above.

Props of MagneticButton
PropTypeDescription
strengthnumberHow strongly the shell follows the cursor, 0 to 1. Defaults to 0.35.
labelStrengthnumberExtra multiplier applied to the inner label. Defaults to 1.6.
radiusnumberDistance in px outside the button where the pull starts. Defaults to 40.
variantMagneticButtonVariant
hrefstringPass `href` to render an `<a>` instead of a `<button>`.
classNamestring
childrenReact.ReactNode

Ask your agent

With the Facade MCP server connected, this prompt is enough:

Add the Facade magnetic button to this page and adapt the copy to our business.