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.json

Or, 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

Component props
PropTypeDefaultNotes
plansPlan[]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 / yearlyNotestring' / 'Save 20%'Currency symbol and toggle chip.
onSelect(plan) => void—CTA click.

Dependencies

  • motion
  • lucide-react
  • FAQ Accordion

    A two-column FAQ: rows expand on a height spring, the plus rotates into a cross, the open row lifts onto a soft surface and answers un-blur in. ↑ ↓ Home End move between questions.

  • Glass Mega Navbar

    A full-width bar that contracts into a floating glass pill on scroll. Menus open into one mega panel that slides between sections with a blur, a hover pill glides between triggers, and phones get a…

  • Testimonial Wall

    A masonry wall of quote cards whose columns drift in opposite directions at different speeds, faded at the edges, with a pause button; reduced motion shows a static scrollable wall.

  • Activity Rings

    Apple Watch-style concentric progress rings: gradient strokes sweep in on a spring, overshooting 100% laps over itself with a shadowed tip, and the legend numbers roll up.

  • Feature Comparison Table

    A plan comparison table with a sticky header, collapsible groups, a tinted highlighted column, row hover and a one-plan-at-a-time switcher on phones. Real table semantics with screen-reader labels…

  • Spotlight Command Palette

    A cmdk-style ⌘K launcher: fuzzy grouped results, a highlight that springs between rows, nested pages (Backspace to go back), key-cap hints and full combobox semantics with focus restore.

See all 14 Website Sections components