React pricing and billing components
Free React pricing and billing components: pricing tables, monthly and yearly toggles, plan cards, checkout, invoices, payment methods, usage meters and cancel flows.
Billing covers the public pricing page (PricingTable, PlanCard, PricingToggle, PlanComparison, PricingPlans) and everything a customer sees after paying: invoices, saved payment methods, usage and quota meters, seat counts, trial and upgrade prompts, and a two-step CancelFlow.
Everything is UI only, so plans, invoices and payment methods can come from Stripe, Paddle, Lemon Squeezy or your own API. Most components take amounts as preformatted strings, so format money with Intl.NumberFormat first. CreditCardInput formats by card brand and runs a Luhn check but never sends card data anywhere; if you use a hosted payment field, keep only the layout.
Which one should I use?
| You need | Use | Why |
|---|---|---|
| Plan tiers side by side | Pricing Table | Three plan cards, one highlighted |
| A monthly / yearly switch | Pricing Toggle | With a savings note |
| A full feature matrix | Plan Comparison | Real table, checks read aloud |
| A pricing section with rolling prices | Pricing Plans | Digits roll on period change |
| A customer's subscription page | Billing Page | Plans, seats, recent invoices |
| Billing history | Invoice List | Number, date, amount, status |
| One invoice with line items | Invoice Detail | Total at the foot |
| The card on file | Payment Method Card | Last four digits only |
| Collect card details | Credit Card Input | Brand formatting, Luhn check |
| Usage against a limit | Usage Meter | Seats, storage, API calls |
| Several metered resources | Usage Breakdown | Amber at 90%, red at the limit |
| Prepaid or AI credits | Credit Balance | Large tabular number |
| Days left in a trial | Trial Banner | With an upgrade button |
| A soft paywall on one feature | Upgrade Prompt | Shown in place of the feature |
| Cancel a subscription | Cancel Flow | Ask why, then confirm |
30 items
npx shadcn@latest add @minidev/add-card-form @minidev/billing-address @minidev/cancel-flow @minidev/comparison-table @minidev/credit-balance @minidev/downgrade-warning @minidev/invoice-detail @minidev/invoice-list @minidev/payment-method-card @minidev/plan-card @minidev/plan-comparison @minidev/pricing-table @minidev/pricing-toggle @minidev/quota-bar @minidev/receipt @minidev/seat-manager @minidev/tax-fields @minidev/trial-banner @minidev/upgrade-prompt @minidev/usage-breakdown @minidev/usage-meter @minidev/billing-page @minidev/pricing-plans @minidev/feature-comparison @minidev/free-premium-compare @minidev/morph-price @minidev/pricing-kinetic @minidev/pricing-motion @minidev/pricing-page @minidev/credit-card-inputComponents 22
Compact payment form for card number, expiry and CVC with correct autocomplete hints, numeric input mode and a full width save button. Ready for your processor.
npx shadcn@latest add @minidev/add-card-formTailwind billing address fieldset with a multiline street field and a responsive row for city, state and postal code. Drops into checkout forms.
npx shadcn@latest add @minidev/billing-addressTwo step subscription cancellation flow: ask for a reason with radio options, then confirm with a destructive button or go back. Tells users what they keep.
npx shadcn@latest add @minidev/cancel-flowPlan comparison table with features as rows and plans as columns, showing check or dash icons for booleans and text for values. Scrolls on mobile.
npx shadcn@latest add @minidev/comparison-tableCompact credit balance pill with a small label and a large tabular figure. Shows remaining credits or usage balance for AI and pay-as-you-go apps.
npx shadcn@latest add @minidev/credit-balanceTailwind plan downgrade warning card with an amber border, a summary of what gets locked on the free plan, and Keep plan or Downgrade buttons.
npx shadcn@latest add @minidev/downgrade-warningAn invoice card with the number, date, a paid, open or void status badge, itemized line amounts and a bold total row. Built with React for billing pages.
npx shadcn@latest add @minidev/invoice-detailA bordered list of invoices showing number, date, amount and a paid, open or void status badge on each row. Fits the billing history in account settings.
npx shadcn@latest add @minidev/invoice-listA saved card row showing the card brand, last four digits and expiry date in monospace, with an Edit button. Fits the payment methods area of billing.
npx shadcn@latest add @minidev/payment-method-cardA pricing plan card with the plan name, a large price per period, a feature list and a full width call to action. A highlighted prop marks the recommended tier.
npx shadcn@latest add @minidev/plan-cardA Free versus Pro comparison table with a row per feature and check or dash icons in each plan column. Shows what an upgrade unlocks on Tailwind pricing pages.
npx shadcn@latest add @minidev/plan-comparisonA three column pricing section that renders a PlanCard for each tier you pass in, stacking on mobile. Mark one plan as highlighted to steer visitors toward it.
npx shadcn@latest add @minidev/pricing-tableA Monthly and Yearly billing period switch built on a segmented control, with a Save 20% with yearly note underneath. Pairs with pricing tables and plan cards.
npx shadcn@latest add @minidev/pricing-toggleCompact quota bar showing a label, used over max with locale formatting, and a thin accent progress track exposed as an ARIA progressbar for plan limits.
npx shadcn@latest add @minidev/quota-barReceipt
uiMonospace payment receipt card with an order id, itemized amounts in tabular numerals and a bold total row. Built with Tailwind for checkout and billing pages.
npx shadcn@latest add @minidev/receiptTeam seat manager card showing seats used out of the plan, an Invite button, and a member list with name, email and role badge. Built in React for billing.
npx shadcn@latest add @minidev/seat-managerCheckout tax fields with country and a monospace VAT or EIN tax ID input in a two-column grid. Drop it into billing address forms for business customers.
npx shadcn@latest add @minidev/tax-fieldsTrial banner with a days left headline, a short note on what stays unlocked and an Upgrade button, on an accent tinted strip. Built for SaaS billing nudges.
npx shadcn@latest add @minidev/trial-bannerUpgrade prompt card with a title, a short description of what the paid plan unlocks and an Upgrade button. Place it where a free user hits a gated feature.
npx shadcn@latest add @minidev/upgrade-promptUsage breakdown listing several metered items, each with its label, used over limit and a thin accent bar. Use it on billing pages to show where plan limits go.
npx shadcn@latest add @minidev/usage-breakdownSingle usage meter with a label, used over limit count and a Progress bar linked by aria-labelledby. Handy for API calls, storage or seats on billing pages.
npx shadcn@latest add @minidev/usage-meterReact credit card input that groups the number by brand, runs a Luhn check, formats expiry as MM / YY and sizes the CVC for Amex. UI only, no payments.
npx shadcn@latest add @minidev/credit-card-input
Blocks and full pages 2
Billing Page
blockA Tailwind workspace billing page with three plan cards and a highlighted Pro tier, a seat usage meter, and an invoice list with paid and void statuses.
npx shadcn@latest add @minidev/billing-pagePricing Plans
blockA React pricing section with a monthly or yearly switch that rolls prices to the new value, a featured ink plan, and feature rows marked included or not.
npx shadcn@latest add @minidev/pricing-plans
Motion 6
Feature Comparison
motionA free versus premium comparison table with check, dash or text cells whose rows fade in on scroll. Pass an array of rows to compare plan features.
npx shadcn@latest add @minidev/feature-comparisonFree Premium Compare
motionA two column tier comparison with free and premium cards, feature checklists, price blurbs and CTAs, with the featured tier outlined in the accent color.
npx shadcn@latest add @minidev/free-premium-compareMorph Price
motionA price display with a monthly or yearly toggle where the old amount springs out and the new price springs in. A compact pricing interaction for plan cards.
npx shadcn@latest add @minidev/morph-pricePricing Kinetic
motionA pricing section pairing a kinetic headline and a typographic marquee with a free versus premium feature comparison table. Built for React launch pages.
npx shadcn@latest add @minidev/pricing-kineticPricing Motion
motionPricing plan cards that fade up in sequence on scroll, each with name, price, blurb, feature bullets and a choose button, plus an accent featured plan.
npx shadcn@latest add @minidev/pricing-motionPricing Page
motionA full Tailwind pricing page with a monthly or yearly toggle, animated plan cards, a feature comparison table, pricing FAQs, a glowing CTA and a mega footer.
npx shadcn@latest add @minidev/pricing-page
Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.
Frequently asked questions
Does the pricing table support monthly and yearly billing?
Yes. Put PricingToggle above PricingTable to flip prices between periods. PricingPlans has the switch built in, and its prices roll digit by digit when the period changes. The pricing page guide shows a full page.
Do these components connect to Stripe?
They render data you pass in, so load plans, invoices and payment methods from Stripe and pass them as props. If you collect cards with Stripe Elements or another hosted field, render that inside the layout instead of CreditCardInput.
How do I highlight the recommended plan?
Set highlighted on that PlanCard and give it a badge. Highlighted tiers get the accent ring, which draws the eye without shouting.
How should a subscription cancel flow work?
CancelFlow asks for one reason, then confirms, and Continue stays disabled until a reason is chosen. Before a downgrade, DowngradeWarning spells out what the customer will lose, with keep and downgrade buttons.