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

# Like Toggle

> Heart toggle that pops and scatters particles on the way up, with a live count. Pill fills rose when active — no glow, no gradient.

## Install

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

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { LikeButton } from "@/components/buttons/like-button";

export function LikeButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <LikeButton />
    </div>
  );
}
```

## API Reference

### LikeButton

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

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