# Pricing Odometer (Pro)

> Plan cards under a monthly / yearly switch whose prices roll digit by digit; pointing at a plan sweeps a marker behind what it adds.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Pricing |
| Live preview | https://uibrik.com/components/pricing-odometer |
| Writes | 1 files into `components/uibrik/pricing-odometer/`, plus `components/uibrik/_pricing/parts.tsx` |
| Packages | `@number-flow/react`, `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/pricing-odometer
```

No license yet? Tell the user Pricing Odometer is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=pricing-odometer#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
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) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/pricing-odometer.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `tiers` | `"2" \| "3"` | `"3"` | How many plans to show. |
| `defaultBilling` | `"monthly" \| "yearly"` | `"yearly"` | Billing period on mount. |
| `showSaving` | `boolean` | `true` | Show the yearly saving beside "Yearly". |
| `spotlight` | `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` | `string` | `""` | Marker colour behind a plan's own features. Empty follows the theme. |
| `dim` | `number` | `0.45` | How far the other plans fade back. |
| `currency` | `string` | `"USD"` | ISO currency code for the prices. |
| `locale` | `string` | `"en-US"` | Locale for currency symbols, grouping and decimals. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `plans` | `Plan[]` |  | Plans in tier order. Each lists only the features it adds to the one before. |
| `onSelect` | `(plan: Plan, billing: Billing) => void` |  | Called when a plan's button is pressed. |
| `className` | `string` |  | Classes for the section. |

## Where it fits

- **Monthly and yearly billing**: Prices rolling digit by digit when switching periods make savings visible. Pairs with [Segmented Control](https://uibrik.com/components/segmented-control.md).
- **Plan comparisons**: A marker sweeping behind what each plan adds explains differences.
- **Subscription upgrades**: Rolling numbers draw attention to discounts on yearly plans.

## Same shelf: Pricing

- [Pricing Receipt](https://uibrik.com/components/pricing-receipt.md) (Pro): Pick a plan and a receipt prints with the line items and total due today, then gets stamped.
- [Usage Pricing](https://uibrik.com/components/usage-pricing.md) (Pro): Pay-as-you-go pricing where each meter is a slider drawn as its price bands; drag across them and the rate you're on lights up while the monthly bill adds up beside it.
- [Plan Morph](https://uibrik.com/components/plan-morph.md) (Pro): Plan cards that open in place: the chosen card grows to fill the row with everything it includes and what the next plan adds, while the others fold into chips above it.
- [Pricing Calculator](https://uibrik.com/components/pricing-calculator.md) (Pro): Drag the team size and totals update live; the cheapest plan for that team is marked, and dots on the slider show where it changes.
- [Pricing Glow](https://uibrik.com/components/pricing-glow.md) (Pro): Simple plan cards under a monthly / yearly switch; a light travels round the recommended plan's edge and follows the pointer, with a halo outside and waves of light inside.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/pricing-odometer/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
