Pricing Plans
Three-tier pricing with a sliding monthly/yearly switch whose numerals roll digit by digit, a highlighted ink plan with a light rim, and a “you save” chip that springs in on yearly.
Try it: Toggle Monthly / Yearly (or ← →) and watch the prices roll.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/pricing-plans.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/pricing-plans. You can also copy the source into components/ui/pricing-plans.tsx (view on GitHub).
Usage
import { PricingPlans } from '@/components/ui/pricing-plans'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
plans | Plan[] | DEFAULT_PLANS | { id, name, tagline, monthly, yearly, features, cta, highlighted?, badge? } — null price shows “Custom”. |
billing / defaultBilling / onBillingChange | 'monthly' | 'yearly' | 'yearly' | Controlled or uncontrolled period. |
currency / yearlyNote | string | '
|