uibrik

Pricing Calculator

New

Preview

Customize

Three
Seats8
Monthly
Max seats50

Usage

import { PricingCalculator } from "@/components/uibrik/pricing-calculator/pricing-calculator";

<PricingCalculator />

Installation

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

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.