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
npx airflib@latest add likes-counter
Usage
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.
| Name | Type | Default | Description |
|---|---|---|---|
size | number | 20px | The heart's size in pixels; the number and the touch area scale with it. From 16 to 40px. |
compact | boolean | false | Short 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.