Button
Magnetic Button
MagneticButton.vueInstall
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
TSUsage
API Reference
class?stringDefault
—size?"sm" | "md" | "lg" | "icon"Default
—variant?"primary" | "secondary" | "ghost" | "outline"Default
—pressScale?numberDefault
—ripple?booleanSpawn a Material-style ripple from the press point. Off by default.
Default
—strength?numberMagnetic pull strength. Default 0.25.
Default
0.25magneticClassName?stringClass applied to the magnetic wrapper.
Default
—Used in these Pro blocks
Updated