Avijit Dey

Heart Icon

Component

About

An animated heart icon that pulses with a scale bounce on hover, useful for like/favorite buttons in a UI.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Heart Icon to your project and fits it to your theme.

Code

How Heart Icon is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { HeartIcon } from "@/components/ui/hu-heart";

export default function HeartIconDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center">
      <HeartIcon size={48} className="text-foreground" />
    </div>
  );
}

Dependencies

More by Avijit Dey

View all
  • VK Square Icon

    VK Square Icon

  • Bell Off Icon

    Bell Off Icon

  • Filter Icon

    Filter Icon

  • Shield User Icon

    Shield User Icon

  • Analytics Down Icon

    Analytics Down Icon

  • Coffee Beans Icon

    Coffee Beans Icon

  • Copy Icon

    Copy Icon

  • Location Icon

    Location Icon

Explore more

Part of AnimateIcons / Lucide — browse the full library on 21st.dev.