# Magnetic Cursor Button (Attraction Effect)

> A premium magnetic cursor button with attraction effect that pulls toward the pointer, featuring spotlight glow, smooth motion, and full light/dark mode support. Designed to increase CTA engagement and create high-quality interactive UI.

- Author: [Ashwarya Subhluxmi](https://21st.dev/@ashwarya19)
- Library: Ashwarya Subhluxmi
- License: unknown
- Live preview: https://21st.dev/@ashwarya19/components/magnetic-cursor-button-attraction-effect

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ashwarya19/magnetic-cursor-button-attraction-effect?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
