Component packs › Ledger › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
plans | Plan[] | ||
value | number | ||
period | 'monthly' | 'yearly' | ||
currency | string | ||
coin | number | 12 | Coin value for the savings stack. Default 12. |
label | string | ||
dark | boolean | ||
onChange | (plan: number, period: 'monthly' | 'yearly') => void | ||
autoplay | number | false | Showcase mode: picks plans and flips billing, one step every N ms. |
pick(i: number): voiddestroy(): voidimport PlanCompare from './PlanCompare';
<PlanCompare />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Pricing and payment.