Like Toggle
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. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Like Toggle
npx motion-ui-skill add like-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
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
npx motion-ui-skill add like-button
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"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 |