Black Friday: 30% off Pro

Get 30% off

Updated

Pricing Odometer

Pro

Preview

Customize

Three
Yearly
Color
Dim0.45

Installation

Pro

Pricing Odometer is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/pricing-odometer

Usage

import { PricingOdometer } from "@/components/uibrik/pricing-odometer/pricing-odometer";​const plans = [  {    name: "Starter",    blurb: "For trying things out.",    monthly: 0,    yearly: 0,    features: ["Core components", "Personal projects", "Community support"],    cta: "Start free",  },  {    name: "Pro",    blurb: "For designers who ship every week.",    monthly: 24,    yearly: 19,    features: ["Pro components and blocks", "Figma source files", "Commercial license"],    cta: "Get Pro",    featured: true,  },  // …1 more];​<PricingOdometer  tiers="3"  defaultBilling="yearly"  showSaving  spotlight  color=""  dim={0.45}  currency="USD"  locale="en-US"  plans={plans}  onSelect={(plan, billing) => {}}/>

Where to use Pricing Odometer

  • Monthly and yearly billing

    Prices rolling digit by digit when switching periods make savings visible.

    Pairs with Segmented Control

  • Plan comparisons

    A marker sweeping behind what each plan adds explains differences.

  • Subscription upgrades

    Rolling numbers draw attention to discounts on yearly plans.

Props

PricingOdometer
tiers
Type "2" | "3"
"3"
How many plans to show.
defaultBilling
Type "monthly" | "yearly"
"yearly"
Billing period on mount.
showSaving
Type boolean
true
Show the yearly saving beside "Yearly".
spotlight
Type boolean
true
Full, aligned feature lists; the plan in focus fades the others back and marks what it adds. Off lists only what each plan adds.
color
Type string
""
Marker colour behind a plan's own features. Empty follows the theme.
dim
Type number
0.45
How far the other plans fade back.
currency
Type string
"USD"
ISO currency code for the prices.
locale
Type string
"en-US"
Locale for currency symbols, grouping and decimals.
plans
Type Plan[]
–
Plans in tier order. Each lists only the features it adds to the one before.
onSelect
Type (plan: Plan, billing: Billing) => void
–
Called when a plan's button is pressed.
className
Type string
–
Classes for the section.