Skip to content
Sign upGet access
MicrointeractionsPixel likeMenu

Pixel like (Pro)

ProIncluded in $99

A like button whose pixel heart fills like a glass.

ProHover and a little liquid sloshes in the heart; like it and it fills from the bottom with bubbles, pops and throws an 8 bit burst while the count rolls.

Hover and a little liquid sloshes in the bottom of the heart. Like it and the heart fills from the bottom up, the surface a dithered wave with bubbles rising through it. When it is full the heart pops on a spring, throws a burst of 8 bit sparks snapped to its own pixel grid and gets its shine, and the count rolls like an odometer. Unlike drains it back down.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/pixel-like

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { PixelLike } from "@/components/ui/chatcn/pro/pixel-like"

<PixelLike liked={liked} onLikedChange={setLiked} count={likes} />

Props

PropTypeNotes
liked / defaultLiked / onLikedChangeboolean
countnumberIncluding this like when liked; rolls once the heart is full
labelstringDefault Like

Accessibility

  • A toggle button with aria-pressed; the heart is decoration.

Motion

  • Fills in 900 ms and drains in 560 ms; the pop is a spring. Reduced motion: the heart fills at once with no burst.