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-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-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

  • clsx
  • lucide-react
  • react
  • tailwind-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

Browse this category