Component packs › Minted › Piggy Savings
A glazed ceramic piggy bank takes each coin through the slot on its back and rocks on its feet with the weight.
Piggy Savings is a savings goal 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: lit ceramic, two-pivot rocking, goal bar.
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 |
|---|---|---|---|
value | number | 85 | Amount saved. Default 85. |
goal | number | 200 | Goal. Default 200. |
step | number | 5 | Amount per deposit. Default 5. |
currency | string | ||
title | string | "New bike" | Goal name. Default "New bike". |
disabled | boolean | ||
onChange | (value: number) => void | ||
autoplay | number | false | Showcase mode: deposits every N ms while visible. |
readonly value: numberdeposit(amount?: number): voiddestroy(): voidimport PiggySavings from './PiggySavings';
<PiggySavings />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Pricing and payment.