Component packs › Minted › Coin Counter

Coin Counter

Four glass tubes hold a coin for every unit of each digit; coins drop into the places that grow and jump out of the ones that shrink.

Coin Counter is a counter from Minted, a component pack with 6 savings components: Savings and payment controls with metal coins that flip, stack, drop and pile up. Price: $2 for the whole pack.

Built with: place-value tubes, glass in front and behind, status readout.

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.

Coin Counter props

PropTypeDefaultDescription
valuenumber24860 to 9999. Default 2486.
currencystring
labelstring"Balance"Accessible name. Default "Balance".
autoplaynumber | falseShowcase mode: changes the balance every N ms while visible.

Methods on the ref

Use it in React

import CoinCounter from './CoinCounter';

<CoinCounter />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Minted

Good for: Pricing and payment.