Component packs › Minted › Tip Jar

Tip Jar

Coins drop through the mouth of a glass jar, turn over as they fall, knock together and settle into a pile.

Tip Jar is a tip picker 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: disc pile physics, glass jar, tip buttons.

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.

Tip Jar props

PropTypeDefaultDescription
amountsnumber[][1, 2, 5]Tip buttons. Default [1, 2, 5].
totalnumber18Total already in the jar. Default 18.
currencystring
titlestring"Tip the band"Heading. Default "Tip the band".
disabledboolean
onTip(amount: number, total: number) => void
autoplaynumber | falseShowcase mode: tips every N ms while visible.
seednumber

Methods on the ref

Use it in React

import TipJar from './TipJar';

<TipJar />

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

More in Minted

Good for: Pricing and payment.