Likes counter

A like with a count that rolls place by place: 999 carries into 1,000, and a second tap rolls it back.

Install

Terminal
npx airflib@latest add likes-counter

Usage

TSX
import { LikesCounter } from "@/components/airflib/components/likes-counter";

<LikesCounter
  size={20}
  compact={false}
/>

API

Its main settings, read from the code: each prop's type and default. The prompt lists every prop.

NameTypeDefaultDescription
sizenumber20pxThe heart's size in pixels; the number and the touch area scale with it. From 16 to 40px.
compactbooleanfalseShort numbers: 1.2K, 3.4M.

Sound

The sounds in the catalog are the site's. The block comes silent, with a place for your own.