Skip to content
English
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

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text, sample plans and prices.
plansArray<{ id, name, tagline, monthly, yearly }>sample plansThe plans as columns, in order. Prices are per month; yearly is the monthly price when paid for a year.
groupsArray<{ id, name, icon?, rows: Array<{ name, hint?, values }> }>sample featuresFeature rows grouped by category. Each value is true, false or a short text; a hint becomes the row’s tooltip.
highlightstring'plus'Id of the plan carried by the accent band and shown first on a phone.
currencystringby localeISO currency code of every price.
billing'monthly' | 'yearly''yearly'Billing shown first.
loadingbooleanfalseShows 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.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—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.