Skip to content

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.

30 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

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 needUseWhy
Plan tiers side by sidePricing TableThree plan cards, one highlighted
A monthly / yearly switchPricing ToggleWith a savings note
A full feature matrixPlan ComparisonReal table, checks read aloud
A pricing section with rolling pricesPricing PlansDigits roll on period change
A customer's subscription pageBilling PagePlans, seats, recent invoices
Billing historyInvoice ListNumber, date, amount, status
One invoice with line itemsInvoice DetailTotal at the foot
The card on filePayment Method CardLast four digits only
Collect card detailsCredit Card InputBrand formatting, Luhn check
Usage against a limitUsage MeterSeats, storage, API calls
Several metered resourcesUsage BreakdownAmber at 90%, red at the limit
Prepaid or AI creditsCredit BalanceLarge tabular number
Days left in a trialTrial BannerWith an upgrade button
A soft paywall on one featureUpgrade PromptShown in place of the feature
Cancel a subscriptionCancel FlowAsk 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-input

Components 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-form
  • Tailwind 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-address
  • Two 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-flow
  • Plan 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-table
  • Compact 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-balance
  • Tailwind 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-warning
  • An 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-detail
  • A 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-list
  • A 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-card
  • A 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-card
  • A 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-comparison
  • A 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-table
  • A 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-toggle
  • Compact 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-bar
  • Monospace 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/receipt
  • Team 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-manager
  • Checkout 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-fields
  • Trial 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-banner
  • Upgrade 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-prompt
  • Usage 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-breakdown
  • Single 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-meter
  • React 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

  • A 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-page
  • A 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

  • A 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-comparison
  • A 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-compare
  • A 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-price
  • A 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-kinetic
  • Pricing 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-motion
  • A 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.

See them live

Galleries render these components with sample data in every state.

GuideBuild a SaaS pricing page in React and TailwindBuild a React pricing page with Tailwind: plan data, a monthly and yearly toggle with animated prices, a featured plan, a comparison table, FAQ and a11y.

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.