Loading component…
Loading component…
Compare plans, switch billing periods and expand the details for each tier.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import PricingPlans from ./pricing-plans.
import { PricingPlans } from "@/components/ui/pricing-plans";
export function Pricing() {
return <PricingPlans plans={plans} defaultBilling="yearly" />;
}| Name | Type | Default | Description |
|---|---|---|---|
| plans | Plan[] | Name, monthly and yearly price, limits, sync chip, features and an onSelect callback. One to three plans sit side by side, four two by two; a price that is not a number reads “Custom”; none shows a short empty note | |
| title | string | "Choose your plan" | Section heading |
| subtitle | string | Line under the heading | |
| defaultBilling | "monthly" \| "yearly" | "yearly" | Billing period shown first |
| currency | string | "$" | Symbol in front of the prices, or a three-letter code like "EUR" to format them as that currency (cents only when a price has them) |
| className | string | Extra class on the section |
Three columns on wide screens, one column below 860px
Long plan names, badges, limit labels, sync chips and button labels stay on one line with an ellipsis and show in full on hover; feature labels wrap
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"