Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Like button with burst

A heart and count: liking fills the heart red with a pop, throws eight sparks and rolls the count up; unliking rolls it back.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/like-burst-button.json

2. Use it

Every prop is optional
app/page.tsx
import LikeBurstButton from "@/components/like-burst-button";

export default function Page() {
  return <LikeBurstButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 48px white pill with a grey border holding an outlined heart and the like count in tabular figures.
  2. Liking fills the heart rose red (#e11d48) with a 1.35x pop, sends eight rose and amber sparks outward, and rolls the new count up into place.
  3. Liked keeps a pale rose border and red text.

How it behaves

  • It's a toggle with aria-pressed and the count in its accessible name.
  • Liking adds exactly one; unliking removes it.
  • Sparks only appear when liking, not unliking.
  • Pop, sparks and roll are off under reduced motion.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component