uibrik

Pricing Odometer

New

Preview

Customize

Three
Yearly
Color
Dim0.45

Usage

import { PricingOdometer } from "@/components/uibrik/pricing-odometer/pricing-odometer";

<PricingOdometer />

Installation

npx shadcn@latest add https://uibrik.com/r/pricing-odometer.json
Adds the files to components/uibrik/pricing-odometer and installs @number-flow/react, @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/pricing-odometer.

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.