Skip to content
Gelatin UIAlpha

Animated Heart Icon

Pro

A heart for a Like toggle. On each like it fills, pops, and sends out small particles. It beats on hover.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 13, 2026 · Pro license

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Animated Heart Icon needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
12
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Set checked from the liked state, and put aria-pressed on the button.

The sample also uses Button. One command adds them with this item:

like-button.tsx

AnimatedHeartIcon

<svg>
PropTypeDefaultDescription
variant"bulk""duotone""solid""stroke""twotone"—stroke (default): 1.5 strokes. solid: the body filled, inner details cut through. duotone: a 40% fill under the stroke. twotone: the details at 40%. bulk: the body filled at 40% with no outline, the details at full color.
corners"round""sharp"—round (default): round caps and joins, soft corners. sharp: square caps, miter joins.
trigger"hover""none"—hover (default) plays once per hover or keyboard focus of the control around the icon.
playnumber—Plays once each time this number changes (a new notice, a saved form).
checkedbooleanfalseLiked: the heart fills and, on each change to true, pops with a pulse and a burst.
burstbooleantrueThe pulse ring and the particles on like. Default true. Set false when the control around the icon draws its own burst (Social Action), so two bursts never stack.
...props<svg> attributes—Every other attribute goes to the <svg>, with a ref.