Pricing Table for React
A glass React pricing table with a monthly/yearly toggle, prices that roll like an odometer and a full comparison table. Use Pricing as a pricing section with a monthly and yearly toggle for a SaaS product, with several tiers, billing that defaults to yearly, and a highlighted popular plan.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/pricing.jsonSimple pricing, no surprises
Start free, upgrade when your team grows. Cancel any time.
Starter
For side projects and trying things out.
$0 per month
Free forever
- Projects3
- Storage5 GB
- Custom themes, not included
- Team members1
- Shared libraries, not included
- SSO and SAML, not included
- SupportCommunity
Pro
For freelancers and small teams shipping fast.
$20 per month
Billed $240 yearly
Everything in Starter, plus:
- ProjectsUnlimited
- Storage100 GB
- Custom themes
- Team members5
- Shared libraries
- SupportEmail
Team
For growing teams that need shared control.
$40 per month
Billed $480 yearly
Everything in Pro, plus:
- Storage1 TB
- Team members50
- SSO and SAML
- SupportPriority
Enterprise
Security, scale and support for large orgs.
Custom
Volume pricing for your org
Everything in Team, plus:
- StorageCustom
- Team membersUnlimited
- SupportDedicated
Prices in USD, excluding taxes.
PricingdefaultPricingLabels
Four tiers
Switch between monthly and yearly: every digit rolls to its new value. Hover or focus the popular tier to keep its beam circling, then open the comparison table.
Simple pricing, no surprises
Start free, upgrade when your team grows. Cancel any time.
Starter
For side projects and trying things out.
$0 per month
Free forever
- Projects3
- Storage5 GB
- Custom themes, not included
- Team members1
- Shared libraries, not included
- SSO and SAML, not included
- SupportCommunity
Pro
For freelancers and small teams shipping fast.
$20 per month
Billed $240 yearly
Everything in Starter, plus:
- ProjectsUnlimited
- Storage100 GB
- Custom themes
- Team members5
- Shared libraries
- SupportEmail
Team
For growing teams that need shared control.
$40 per month
Billed $480 yearly
Everything in Pro, plus:
- Storage1 TB
- Team members50
- SSO and SAML
- SupportPriority
Enterprise
Security, scale and support for large orgs.
Custom
Volume pricing for your org
Everything in Team, plus:
- StorageCustom
- Team membersUnlimited
- SupportDedicated
Prices in USD, excluding taxes.
import { Pricing } from "@/components/sheenui/blocks/pricing";
import { type PricingBilling } from "@/components/sheenui/blocks/pricing/model";
// Package build (after the first npm release, or a packed tarball): import { Pricing, type PricingBilling } from "@sheenui/theme";
// Your call: create a checkout session, then send the person to it
async function startCheckout(tierId: string, billing: PricingBilling) {
const res = await fetch("/api/checkout", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ tier: tierId, billing }),
});
const { url } = (await res.json()) as { url: string };
window.location.assign(url);
}
export function Example() {
return (
<Pricing
title="Simple pricing, no surprises"
description="Start free, upgrade when your team grows. Cancel any time."
footnote="Prices in USD, excluding taxes."
onSelect={(tier, billing) => startCheckout(tier.id, billing)}
/>
);
}Files to copy
11 folders · 16 files · 4 packages
- From
theme/src/ blocks/{pricing.tsx, icons.tsx}components/badge/components/button/components/glass-card/components/spinner/components/status-icons/blocks/pricing/hooks/{use-controllable.ts, use-latest.ts, use-magnetic.ts, use-media-query.ts, use-preferences.ts}motion/{gate.ts, light-follower.ts, presets.ts, tokens.ts}lib/{cn.ts, form.ts, heading.ts, state-light.tsx, warn-once.ts}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/pricing.jsonRegistry item: pricing. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Your own tiers, currency and language
Three tiers in euros with German labels. Prices, the savings badge and the yearly total are formatted with Intl for the locale, and the comparison table starts open.
Basis
Für Einzelpersonen.
9 € pro Monat
Monatliche Abrechnung
- Projekte5
- Teammitglieder1
- Eigene Themes, nicht enthalten
- SSO, nicht enthalten
- SupportE-Mail
Studio
Für kleine Studios und Agenturen.
29 € pro Monat
Monatliche Abrechnung
Alles aus Basis, plus:
- ProjekteUnbegrenzt
- Teammitglieder10
- Eigene Themes
- SupportPriorität
Konzern
Für große Organisationen.
Individuell
Volumenpreise für Ihr Unternehmen
Alles aus Studio, plus:
- TeammitgliederUnbegrenzt
- SSO
- SupportPersönlich
Alle Preise zzgl. MwSt.
import { Pricing } from "@/components/sheenui/blocks/pricing";
import { type PricingTier, type PricingFeature } from "@/components/sheenui/blocks/pricing/model";
// Package build (after the first npm release, or a packed tarball): import { Pricing, type PricingTier, type PricingFeature } from "@sheenui/theme";
const tiers: PricingTier[] = [
{ id: "basis", name: "Basis", price: { monthly: 9, yearly: 7.5 }, cta: "Jetzt starten" },
{ id: "studio", name: "Studio", price: { monthly: 29, yearly: 24 }, cta: "14 Tage testen", popular: true },
{ id: "konzern", name: "Konzern", cta: "Vertrieb kontaktieren" }, // no price: "Individuell"
];
const features: PricingFeature[] = [
{ label: "Projekte", values: { basis: "5", studio: "Unbegrenzt", konzern: "Unbegrenzt" } },
{ label: "Eigene Themes", values: { basis: false, studio: true, konzern: true } },
// true = included, false = not included, a string = included with a detail
];
<Pricing
tiers={tiers}
features={features}
currency="EUR"
locale="de-DE"
defaultBilling="monthly"
defaultCompareOpen
labels={{ region: "Preispläne", monthly: "Monatlich", yearly: "Jährlich", save: (p) => `${p} sparen`, perMonth: "/Monat" /* … */ }}
/>Props
PricingLabels keys and English defaults (21)
Keyboard
Accessibility
- A labeled <section>; tier names are headings one level below the title.
- The price is real text with its period, and the billing switch announces the saving.
- The comparison table has column and row headers.
All exports on this page
Pricing— Props (see PricingProps): tiers, features, title, description, headingLevel (2).defaultPricingLabels— The English strings of the pricing block; pass labels to override any of them.
When to use the pricing section
- Use Pricing on the plans page of a subscription product to let visitors compare three tiers side by side, switch between monthly and yearly billing and see the popular plan stand out above a full feature table.
- Use it when buyers compare plans, since the Compare all features disclosure opens a feature table with column and row headers that scrolls horizontally on small screens.
- Use it for regional storefronts, setting currency and locale so prices such as euros or rupees are formatted correctly, with onSelect(tier, billing) sending the choice to checkout.
- Skip it when plans are priced per seat or by usage with a calculator; a form with a Slider and a live total communicates that better than fixed tier cards.
- Pair it with PaymentCheckout for the step after a plan is chosen, Badge for plan labels, and AuthSplit if the visitor must create an account first.
Frequently asked questions
Related pages
20 blocks pages in all: browse them on All blocks.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .