Black Friday: 30% off Pro

Get 30% off

Updated

Pricing Calculator

Pro

Preview

Customize

Three
Seats8
Monthly
Max seats50

Installation

Pro

Pricing Calculator 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-calculator

Usage

import { PricingCalculator } from "@/components/uibrik/pricing-calculator/pricing-calculator";​const plans = [  {    name: "Solo",    blurb: "One person, every tool.",    price: { monthly: 8, yearly: 6 },    per: "plan",    maxSeats: 1,    features: ["All components", "Unlimited projects", "Email support"],    cta: "Go solo",  },  {    name: "Team",    blurb: "Small teams that move fast.",    price: { monthly: 10, yearly: 8 },    per: "seat",    maxSeats: 50,    features: ["Shared library", "Roles and reviews", "Priority support"],    cta: "Start a team",  },  // …1 more];​<PricingCalculator  tiers="3"  defaultSeats={8}  defaultBilling="monthly"  maxSeats={50}  currency="USD"  locale="en-US"  plans={plans}  onSelect={(plan, seats, billing) => {}}/>

Where to use Pricing Calculator

  • Per-seat pricing

    Dragging team size updates totals live, so buyers see their real cost.

    Pairs with Usage Pricing

  • Team plan estimates

    The cheapest plan for that team size is marked, which removes guesswork.

  • Sales pages

    Dots showing where the best plan changes help explain tiered pricing.

Props

PricingCalculator
tiers
Type "2" | "3"
"3"
How many plans to show. Two drops the first (Solo).
defaultSeats
Type number
8
Seat count on mount.
defaultBilling
Type "monthly" | "yearly"
"monthly"
Billing period on mount.
maxSeats
Type number
50
Highest seat count the slider reaches.
currency
Type string
"USD"
ISO currency code for the prices.
locale
Type string
"en-US"
Locale for currency symbols, grouping and decimals.
plans
Type SeatPlan[]
–
Plans with a monthly and yearly price per seat or per plan, and an optional seat minimum and limit.
onSelect
Type (plan: SeatPlan, seats: number, billing: Billing) => void
–
Called when a plan's button is pressed.
className
Type string
–
Classes for the section.