Skip to content

pastetaste

Line Item Estimator

FormsInteractionSections

A quote-style price estimator: steppers and switches per service, a segmented licence that multiplies the lines it covers, an optional per-day allowance and an itemised receipt with a live total.

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/line-item-estimator.tsx.

npx shadcn@latest add https://pastetaste.com/r/line-item-estimator.json

Prompt

Install the pastetaste component "Line Item Estimator" (line-item-estimator) into this Next.js project and use it.

What it is: A quote-style price estimator: steppers and switches per service, a segmented licence that multiplies the lines it covers, an optional per-day allowance and an itemised receipt with a live total.

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/line-item-estimator.json
   (it writes components/pastetaste/line-item-estimator.tsx; install any npm packages it reports).
2. Import it: import { LineItemEstimator } from "@/components/pastetaste/line-item-estimator" (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):
- lines: EstimatorLine[] = five sample services — Rows: id, name, rate, unit ('day' | 'item' | 'fixed'), noun, qty, max, step, licensed (licence multiplier applies), counts (counts as a day for the allowance).
- licences: { id; name; note?; mult }[] = web, print, global — Segmented licence choice; mult 1 means no uplift. Pass [] to hide.
- allowance: { label; note?; perDay } | null = travel allowance — One optional checkbox adding perDay times the counted days. null hides it.
- title: string = 'Project estimator' — Mono overline above the form.
- licenceLabel: string = 'Image licence' — Overline above the licence choice.
- currency: string = 'EUR' — ISO currency code for Intl.NumberFormat.
- locale: string = 'en-US' — Locale for number formatting.
- note: string = payment-terms sentence — Small print under the total.
- ctaLabel: string = 'Take this to the intro call' — Label of the receipt button.
- onSubmit: (summary: string, total: number) => void — Called with a one-line summary and the total when the button is pressed.
- className / style: string / CSSProperties — On the root.

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

Props 11

PropTypeDefaultDescription
linesEstimatorLine[]five sample servicesRows: id, name, rate, unit ('day' | 'item' | 'fixed'), noun, qty, max, step, licensed (licence multiplier applies), counts (counts as a day for the allowance).
licences{ id; name; note?; mult }[]web, print, globalSegmented licence choice; mult 1 means no uplift. Pass [] to hide.
allowance{ label; note?; perDay } | nulltravel allowanceOne optional checkbox adding perDay times the counted days. null hides it.
titlestring'Project estimator'Mono overline above the form.
licenceLabelstring'Image licence'Overline above the licence choice.
currencystring'EUR'ISO currency code for Intl.NumberFormat.
localestring'en-US'Locale for number formatting.
notestringpayment-terms sentenceSmall print under the total.
ctaLabelstring'Take this to the intro call'Label of the receipt button.
onSubmit(summary: string, total: number) => void-Called with a one-line summary and the total when the button is pressed.
className / stylestring / CSSProperties-On the root.
View all →