Component packs › Ledger › Plan Compare

Plan Compare

On yearly billing the plan you pick carries its saving as a coin stack; pick another and the stack hops across and grows or shrinks to fit.

Plan Compare is a pricing table from Ledger, a component pack with 6 pricing components: Pricing controls where every number turns on its own digit wheel and savings are a stack of coins. Price: $2 for the whole pack.

Built with: travelling coin stack, digit wheels, radio group.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Plan Compare props

PropTypeDefaultDescription
plansPlan[]
valuenumber
period'monthly' | 'yearly'
currencystring
coinnumber12Coin value for the savings stack. Default 12.
labelstring
darkboolean
onChange(plan: number, period: 'monthly' | 'yearly') => void
autoplaynumber | falseShowcase mode: picks plans and flips billing, one step every N ms.

Methods on the ref

Use it in React

import PlanCompare from './PlanCompare';

<PlanCompare />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Ledger

Good for: Pricing and payment.