Component packs › Minted › Coin Drop Button
A coin drops spinning on its edge, squares up to the slot cut in the button and slides in as the button dips.
Coin Drop Button is a button 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: slot clip, spin that squares up, button dip spring.
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 |
|---|---|---|---|
amount | number | 5 | Amount per press. Default 5. |
total | number | 40 | Starting total. Default 40. |
currency | string | ||
label | string | "Save {amount}" | Button text; "{amount}" is replaced. Default "Save {amount}". |
disabled | boolean | ||
action | () => unknown | Runs on press (e.g. a request); the coin drops either way. | |
onSave | (total: number) => void | ||
autoplay | number | false | Showcase mode: saves every N ms while visible. |
readonly total: numberplay(): voiddestroy(): voidimport CoinDrop from './CoinDrop';
<CoinDrop />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Pricing and payment.