Component packs › Minted › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
amounts | number[] | [1, 2, 5] | Tip buttons. Default [1, 2, 5]. |
total | number | 18 | Total already in the jar. Default 18. |
currency | string | ||
title | string | "Tip the band" | Heading. Default "Tip the band". |
disabled | boolean | ||
onTip | (amount: number, total: number) => void | ||
autoplay | number | false | Showcase mode: tips every N ms while visible. | |
seed | number |
readonly total: numbertip(amount: number): voiddestroy(): voidimport TipJar from './TipJar';
<TipJar />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Pricing and payment.