Component packs › Minted › Coin Drop Button

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.

Coin Drop Button props

PropTypeDefaultDescription
amountnumber5Amount per press. Default 5.
totalnumber40Starting total. Default 40.
currencystring
labelstring"Save {amount}"Button text; "{amount}" is replaced. Default "Save {amount}".
disabledboolean
action() => unknownRuns on press (e.g. a request); the coin drops either way.
onSave(total: number) => void
autoplaynumber | falseShowcase mode: saves every N ms while visible.

Methods on the ref

Use it in React

import CoinDrop from './CoinDrop';

<CoinDrop />

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

More in Minted

Good for: Pricing and payment.