Plan comparison comes with Pro. Its preview shows once you unlock it.
Usage
import { LandingPricingCompare } from './LandingPricingCompare.jsx'
// Without onChoose a plan starts after a short wait. Wire it to your checkout:
<LandingPricingCompare
locale="en"
currency="USD"
plans={plans} // [{ id, name, tagline, monthly, yearly }]
groups={featureGroups} // [{ id, name, icon, rows: [{ name, hint?, values: [true | false | string per plan] }] }]
highlight="plus"
loading={!plans}
onChoose={async (planId, billing) => (await startTrial(planId, billing)).ok}
/>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text, sample plans and prices. |
plans | Array<{ id, name, tagline, monthly, yearly }> | sample plans | The plans as columns, in order. Prices are per month; yearly is the monthly price when paid for a year. |
groups | Array<{ id, name, icon?, rows: Array<{ name, hint?, values }> }> | sample features | Feature rows grouped by category. Each value is true, false or a short text; a hint becomes the row’s tooltip. |
highlight | string | 'plus' | Id of the plan carried by the accent band and shown first on a phone. |
currency | string | by locale | ISO currency code of every price. |
billing | 'monthly' | 'yearly' | 'yearly' | Billing shown first. |
loading | boolean | false | Shows the skeleton while prices load. |
onChoose / onBillingChange | (planId, billing) => Promise<boolean | void> / (billing) => void | — | Starts a plan (resolve false to keep the button); the billing switch changed. |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
className | string | — | Added to the root section. |
Add it to your project
Pro includes the full source of this block. Copy its prompt to install it with your coding agent.
LandingPricingCompare.jsxlanding-pricing-compare.csscopy.jskit.jsxkit.cssui/base-button/ui/rolling-number/ui/success-check/ui/skeleton-shimmer/ui/sliding-tabs/ui/tooltip/tokens.cssREADME.md
The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.
