---
title: "Sticky Button | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/sticky-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/sticky-button.tsx"
install_command: "npx motion-ui-skill add sticky-button"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Sticky Button

> Magnetic cursor button pulled toward the pointer from a wide capture field with parallax tilt and depth.

## Install

```bash
npx motion-ui-skill add sticky-button
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { StickyButton } from "@/components/buttons/sticky-button";

export function StickyButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <StickyButton>Click Me</StickyButton>
    </div>
  );
}
```

## API Reference

### StickyButton

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `pullRadius` | `number` | 150 | No | Cursor magnetic attraction radius in pixels |
| `className` | `string` | — | No | Additional CSS classes |
| `children` | `React.ReactNode` | — | No | Button label content |

## Source Files

- [components/buttons/sticky-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/sticky-button.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
