Skip to content

pastetaste

Savings Pots

DataInteractionCards

Shared goals as pots: progress bars, a forecast month that follows the auto-save switch, amount chips and an Add button that fills the bar until the pot is full.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/savings-pots.tsx.

npx shadcn@latest add https://pastetaste.com/r/savings-pots.json

Prompt

Install the pastetaste component "Savings Pots" (savings-pots) into this Next.js project and use it.

What it is: Shared goals as pots: progress bars, a forecast month that follows the auto-save switch, amount chips and an Add button that fills the bar until the pot is full.

Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:

Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/savings-pots.json
   (it writes components/pastetaste/savings-pots.tsx; install any npm packages it reports).
2. Import it: import { SavingsPots } from "@/components/pastetaste/savings-pots" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.

Props (all optional unless the type has no default):
- pots: { id; title; sub?; target; saved; rate; autoSave?; icon? }[] = 3 pots — Goals. rate is the monthly saving with auto-save on; without it the pace is 40% of that.
- amounts: number[] = [10,25,50,100] — Amount chips; the second one is picked first.
- title: string = 'Shared pots' — Card heading.
- currency: string = '€' — Currency symbol.
- startMonth: [number, number] = [2026, 11] — Year and zero-based month the forecast counts from (set it to today).
- accent: string = #2f7be6 — Bar, switch and chip colour.

Live preview: https://pastetaste.com/c/savings-pots
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 6

PropTypeDefaultDescription
pots{ id; title; sub?; target; saved; rate; autoSave?; icon? }[]3 potsGoals. rate is the monthly saving with auto-save on; without it the pace is 40% of that.
amountsnumber[][10,25,50,100]Amount chips; the second one is picked first.
titlestring'Shared pots'Card heading.
currencystring'€'Currency symbol.
startMonth[number, number][2026, 11]Year and zero-based month the forecast counts from (set it to today).
accentstring#2f7be6Bar, switch and chip colour.
View all →