Component packs › Insignia › Count Badge
New items roll the digits on their wheels and re-strike the enamel badge; past 99 it reads 99+, at zero it lifts off.
Count Badge is a badge from Insignia, a component pack with 6 badges: Badges struck like coins: they press in, emboss and catch the light once. Price: $2 for the whole pack.
Built with: rolling digits, re-strike on change, 99+ overflow.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | ||
label | string | What is being counted, for the accessible name. | |
icon | "bell" | "inbox" | "chat" | ||
max | number | ||
onClick | () => void | ||
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: new items arrive every N ms while visible. |
readonly count: numbersetCount(count: number): voiddestroy(): voidimport CountBadge from './CountBadge';
<CountBadge />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Badges.