Launch price: lifetime access for $149, $199 after

Plan Picker

Changing plan, with a monthly and yearly toggle and the money written out before anyone commits — $90.67 today for the rest of this period, then $249 on 14 Oct. Downgrades show the credit. Plans the team has outgrown refuse and say why.

BillingFree405 lines · one file

The decision inside it

Your backend quotes, the picker never does the arithmetic

Proration rules differ by processor and by contract. The picker asks a quote function you supply and prints what comes back, so the number under the button is the number on the invoice.

Installation

How you get it

One command. The CLI writes the file into components/ui/ and installs what it needs.

npx shadcn@latest add https://layropro.com/r/plan-picker

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
plansrequiredPickerPlan[]—
currentPlanIdrequiredstring—
currentIntervalBillingInterval—
defaultSelectedstringWhich plan opens selected. Default: the current one. Set it when the picker is opened from an "Upgrade" button, so the customer lands on the plan they clicked with its charge already printed.
quoterequired(planId: string, interval: BillingInterval) => PlanQuoteAsked on every selection. Synchronous: fetch quotes up front, not on click.
onConfirm(planId: string, interval: BillingInterval, quote: PlanQuote) => void—
currencystring—
localestring—
titlestring—
footnotestringSmall print under the button. Default states that tax is extra.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themesegmented-control

Lifetime access

Every component, and everything we ship next.

  • All 65 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in Billing