225
A heart that squeezes and pops full with a thin ring and a flick of sparks, while the count rolls over digit by digit like an odometer; unliking fades back quietly.
akalike button·heart animation·favorite
Run this in any project set up for the shadcn CLI. It copies the Like Burst source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/like-burst.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { LikeButton } from "@/components/like-burst";
export default function Page() {
return <LikeButton />;
}A free React motion component in the Celebration collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Like Burst source. Everything is optional unless it says required. It also accepts Omit<ComponentProps<"button">, "onChange">.
| Prop | Type | Default |
|---|---|---|
| liked | boolean | — |
| defaultLiked | boolean | false |
| onLikedChange | (liked: boolean) => void | — |
| count | number | — |