Pricing calculator
Seat-based pricing section with a stepped team-size slider, monthly and yearly billing toggle, plan cards with rolling prices, seat caps, volume discounts, dynamic feature rows, and a live totals bar.
import { PricingCalculator } from '@uthereal/ui/pricing-calculator'Pricing calculator playground
Pay for the seats you use
Move the slider to your team size. Every plan includes a 14 day trial.
Starter
For small crews getting organized
Starter fits up to 10 seats
You picked 20 seats.
- Unlimited projects and docs
- 5 GB shared storage per seat
- 30 days of version history
- Email support
Team
RecommendedFor teams shipping together every week
$16 Per seat, per monthPer seat, per month
$3,840 Billed yearly for 20 seatsBilled yearly for 20 seats
- Everything in Starter
- 20 GB shared storage per seat
- Google and Microsoft sign-in
- Guided onboarding session
Business
For companies with security reviews
$28 Per seat, per monthPer seat, per month
$6,720 Billed yearly for 20 seatsBilled yearly for 20 seats
- Everything in Team
- SAML SSO and SCIM provisioning
- Audit log with 1 year retention
- 99.95% uptime commitment
Team, 20 seats
$3,840 per yearper year
$16 per seat per month, billed once a year
You save $960 a year
14 day trial on every plan
Overview
PricingCalculator answers what a team of a given size pays across 1 to 4 seat-based plans. A stepped range slider with minus/plus buttons and plan-threshold marks sets team size, while a monthly/yearly billing radiogroup toggles annual billing and displays the live yearly saving.
As team size changes, a measured selection frame and a Recommended badge travel to the fitting tier, prices and period totals roll on an odometer, volume discount rows open or close automatically, and capped tiers swap cleanly to a seat-cap notice with a one-click drop-back button. The totals bar summarizes the active plan, period charge, per-seat rate, yearly savings (or one-click yearly switch), and trial CTA.
Use PricingCalculator for per-seat SaaS pricing pages with seat caps or volume discounts. When spend depends on metered API or traffic consumption alongside seats, use Usage pricing. For a feature-by-feature comparison matrix, use Plan comparison.
Usage
'use client'
import { PricingCalculator } from '@uthereal/ui/pricing-calculator'
export function SeatPricingPage() {
return (
<PricingCalculator
defaultSeats={20}
defaultInterval="yearly"
selectAction="select_calculator_plan"
startTrialAction="start_calculator_trial"
onStartTrial={async (plan, seats, interval) => {
await fetch('/api/trials', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ planId: plan.id, seats, interval }),
})
}}
/>
)
}Omit onStartTrial to run the built-in simulated settle on the trial button (nothing runs on mount or leaves the browser). Pass seats and onSeatsChange (or interval and onIntervalChange) for controlled host state.
Examples
Large-team volume discount in euros
Start at defaultSeats={100} with currency="EUR" and locale="de-DE" to show Business recommended, the top volume discount tier applied to every seat, and localized Euro formatting.
European enterprise seat pricing
Volume discounts apply automatically to every seat at 25 and 100 seats.
Starter
For small crews getting organized
Starter fits up to 10 seats
You picked 100 seats.
- Unlimited projects and docs
- 5 GB shared storage per seat
- 30 days of version history
- Email support
Team
For teams shipping together every week
12 € Per seat, per monthPer seat, per month
14.400 € Billed yearly for 100 seatsBilled yearly for 100 seats
- Everything in Starter
- 20 GB shared storage per seat
- Google and Microsoft sign-in
- Volume pricing, 4 € off each seat
- Guided onboarding session
Business
RecommendedFor companies with security reviews
24 € Per seat, per monthPer seat, per month
28.800 € Billed yearly for 100 seatsBilled yearly for 100 seats
- Everything in Team
- SAML SSO and SCIM provisioning
- Audit log with 1 year retention
- Volume pricing, 4 € off each seat
- Named success manager
- 99.95% uptime commitment
Business, 100 seats
28.800 € per yearper year
24 € per seat per month, billed once a year
You save 8.400 € a year
14 day trial on every plan
Monthly billing for a small team
Start at defaultSeats={5} with defaultInterval="monthly" to keep Starter within its 10-seat cap and surface the interactive Save with yearly billing switch pill in the totals bar.
Start small, upgrade when ready
Switch to yearly billing at any point to lock in a 20% discount.
Starter
RecommendedFor small crews getting organized
$10 Per seat, per monthPer seat, per month
$50 A month for 5 seatsA month for 5 seats
- Unlimited projects and docs
- 5 GB shared storage per seat
- 30 days of version history
- Email support
Team
For teams shipping together every week
$20 Per seat, per monthPer seat, per month
$100 A month for 5 seatsA month for 5 seats
- Everything in Starter
- 20 GB shared storage per seat
- Google and Microsoft sign-in
Business
For companies with security reviews
$35 Per seat, per monthPer seat, per month
$175 A month for 5 seatsA month for 5 seats
- Everything in Team
- SAML SSO and SCIM provisioning
- Audit log with 1 year retention
Starter, 5 seats
$50 per monthper month
$10 per seat per month
14 day trial on every plan
Seat thresholds, caps, and volume tiers
Dynamic card states
| Condition | Card behavior |
|---|---|
seats <= plan.maxSeats | Shows rolling per-seat price, period total, and Choose / Selected button. |
seats > plan.maxSeats | Dims pitch and features, swaps price for the limit notice, and offers Use {max} seats to step down. |
seats >= tier.fromSeats | Subtracts offPerSeat on plans with volume: true and expands matching minSeats feature lines. |
interval === 'yearly' | Applies plan.yearly rates, expands yearlyOnly: true features, and shows annual savings. |
Persisted host state
pricingCalculatorDefinition declares seats and interval state keys so AI hosts can persist and reconcile the picked team size (snapped to the nearest stop) and billing period across reloads.
API reference
These serializable arguments and defaults come directly from the component schema.
| Argument | Type / default | Description |
|---|---|---|
title | stringDefault: "Pay for the seats you use" | Heading and accessible section name. |
description | stringDefault: "Move the slider to your team size. Every plan includes a 14 day trial." | Supporting line under the heading. Pass an empty string (or null in React) to hide it. |
seatStops | number[]Default: [5,10,20,50,100,250] | Ascending, unique seat counts the slider stops at. Two to twenty four. |
defaultSeats | integerDefault: 20 | Seat count picked on first render; it snaps to the nearest stop. Edits do not reset a mounted instance. |
defaultInterval | monthly | yearlyDefault: "yearly" | Billing interval picked on first render. |
plans | PricingPlan[]Default: [{"id":"starter","name":"Starter","pitch":"For small crews getting organized","monthly":10,"yearly":8,"maxSeats":10,"volume":false,"features":[{"id":"projects","text":"Unlimited projects and docs","yearlyOnly":false},{"id":"storage","text":"5 GB shared storage per seat","yearlyOnly":false},{"id":"history","text":"30 days of version history","yearlyOnly":false},{"id":"support","text":"Email support","yearlyOnly":false}]},{"id":"team","name":"Team","pitch":"For teams shipping together every week","monthly":20,"yearly":16,"volume":true,"features":[{"id":"everything","text":"Everything in Starter","yearlyOnly":false},{"id":"storage","text":"20 GB shared storage per seat","yearlyOnly":false},{"id":"sso","text":"Google and Microsoft sign-in","yearlyOnly":false},{"id":"volume","text":"Volume pricing, {off} off each seat","minSeats":25,"yearlyOnly":false},{"id":"onboarding","text":"Guided onboarding session","yearlyOnly":true}]},{"id":"business","name":"Business","pitch":"For companies with security reviews","monthly":35,"yearly":28,"volume":true,"features":[{"id":"everything","text":"Everything in Team","yearlyOnly":false},{"id":"saml","text":"SAML SSO and SCIM provisioning","yearlyOnly":false},{"id":"audit","text":"Audit log with 1 year retention","yearlyOnly":false},{"id":"volume","text":"Volume pricing, {off} off each seat","minSeats":25,"yearlyOnly":false},{"id":"manager","text":"Named success manager","minSeats":50,"yearlyOnly":false},{"id":"uptime","text":"99.95% uptime commitment","yearlyOnly":true}]}] | Plan cards, in order: id, name, pitch, monthly and yearly per-seat prices, optional maxSeats cap, volume flag, and dynamic feature lines. One to four. |
recommendFrom | number[]Default: [6,50] | One ascending seat threshold per plan change (one fewer than the plan count), marking where the recommended plan moves to the next plan. |
volumeTiers | VolumeTier[]Default: [{"fromSeats":100,"offPerSeat":4},{"fromSeats":25,"offPerSeat":2}] | Volume discounts listed by descending fromSeats; each takes offPerSeat off every seat per month on plans with volume. |
currency | stringDefault: "USD" | ISO 4217 currency code used to format every price, e.g. USD. |
seatLabel | stringDefault: "{count} {noun}" | Team size template; {count} fills the seat count, {noun} the singular or plural noun. |
seatNoun | stringDefault: "seats" | Plural noun of the team size unit, e.g. "seats". |
fewerLabel | stringDefault: "One fewer seat step" | Accessible name of the minus step button. |
moreLabel | stringDefault: "One more seat step" | Accessible name of the plus step button. |
monthlyLabel | stringDefault: "Monthly" | Label of the monthly billing option. |
yearlyLabel | stringDefault: "Yearly" | Label of the yearly billing option. |
monthlyNote | stringDefault: "A month for {seats}" | Plan total note under monthly billing; {seats} fills the seat label. |
yearlyNote | stringDefault: "Billed yearly for {seats}" | Plan total note under yearly billing; {seats} fills the seat label. |
perSeatLabel | stringDefault: "Per seat, per month" | Unit line under each plan price. |
recommendedLabel | stringDefault: "Recommended" | Badge that glides to the plan fitting the seat count. |
chooseLabel | stringDefault: "Choose {name}" | Plan action label; {name} fills the plan name. |
selectedLabel | stringDefault: "Selected" | Plan action label once the plan is chosen. |
limitTitleLabel | stringDefault: "{name} fits up to {max} {noun}" | Limit note title on an over-cap plan; {name}, {max}, and {noun} fill in. |
limitBodyLabel | stringDefault: "You picked {seats}." | Limit note body; {seats} fills the seat label. |
useSeatsLabel | stringDefault: "Use {max} {noun}" | Over-cap plan action label; {max} and {noun} fill in. |
totalsLabel | stringDefault: "{name}, {seats}" | Totals line; {name} and {seats} fill in. |
perYearLabel | stringDefault: "per year" | Unit after the yearly total. |
perMonthLabel | stringDefault: "per month" | Unit after the monthly total. |
perSeatNoteLabel | stringDefault: "{price} per seat per month" | Totals note; {price} fills the formatted per-seat price. |
billedYearlyNoteLabel | stringDefault: ", billed once a year" | Totals note suffix under yearly billing. |
saveLabel | stringDefault: "You save {amount} a year" | Savings line under yearly billing; {amount} the saving. |
saveSwitchLabel | stringDefault: "Save {amount} with yearly billing" | Monthly-billing switch action; {amount} the yearly saving. |
startLabel | stringDefault: "Start {name} trial" | Trial action label; {name} fills the selected plan. |
startedLabel | stringDefault: "Trial started" | Trial action label while the started note shows. |
trialDaysLabel | stringDefault: "14 day trial on every plan" | Trial length note in the totals bar. |
trialAnnouncementLabel | stringDefault: "Trial of {name} started for {seats}." | Live region announcement when the trial starts; {name} and {seats} fill in. |
billingAnnouncementLabel | stringDefault: "Yearly billing. Prices shown per seat per month, billed once a year." | Live region announcement when yearly billing is chosen. |
monthlyAnnouncementLabel | stringDefault: "Monthly billing" | Live region announcement when monthly billing is chosen. |
seatsAnnouncementLabel | stringDefault: "{count} {noun}" | Live region announcement for the picked team size; {count} and {noun} fill in. |
selectAction | string— | Registered host action requested when a plan is chosen; reports the plan ID. |
startTrialAction | string— | Registered host action requested when the trial button is pressed; reports the plan ID. |
locale | string— | BCP 47 locale for currency formatting; inherited when omitted. |
recipe | studio | softDefault: "studio" | Visual treatment. Both recipes preserve interaction behavior. |
theme | PricingCalculatorThemeDefault: {} | Color mode, accent, and typed semantic token overrides. |
motion | none | subtle | expressiveDefault: "subtle" | Animation preset. System reduced-motion preferences take precedence. |
motionOptions | PricingCalculatorMotionOptionsDefault: {} | Selection frame, badge glide, feature row, and copy swap timing overrides in milliseconds. |
dir | ltr | rtl— | Reading direction; inherited from the page when omitted. |
PricingPlanaccepts{ id, name, pitch, monthly, yearly, maxSeats?, volume?, features }. Plan IDs must be unique,yearlycannot exceedmonthly, andrecommendFrommust containplans.length - 1ascending thresholds.PlanFeatureaccepts{ id, text, minSeats?, maxSeats?, yearlyOnly? }. Feature IDs must be unique within each plan;{seats}and{off}fill the active seat count and formatted volume discount.VolumeTieraccepts{ fromSeats, offPerSeat }, listed in descendingfromSeatsorder so the highest matching tier applies first.
React integration
| Prop | Purpose |
|---|---|
seats, onSeatsChange(seats) | Controlled seat count (snapped to the nearest stop) and change callback. |
interval, onIntervalChange(interval) | Controlled billing interval ('monthly' | 'yearly') and change callback. |
onSelectPlan(plan) | Called with the chosen PricingPlan whenever a plan button is activated. |
onStartTrial(plan, seats, interval) | Called on trial CTA press; return a Promise to hold the loading state until it settles. |
onAction(action, itemId?) | Called with selectAction or startTrialAction and the active plan ID. |
preset | Application defaults overridden by explicit instance arguments. |
tokens | CSS variables applied after the typed theme, forwarded to root and composed buttons. |
ref, className, style | Applied to the root <section> element. |
| Native attributes | id, aria-*, data-*, and remaining <section> props forwarded to the root element. |
Keyboard & accessibility
| Key | Action |
|---|---|
ArrowLeft / ArrowRight (on slider) | Moves between seat stops on the native <input type="range"> control. |
Home / End / PageUp / PageDown | Jumps to the lowest, highest, or adjacent seat stops. |
ArrowLeft / ArrowRight (billing) | Switches between Monthly and Yearly in the radiogroup and moves focus (RTL). |
Enter / Space | Steps seats via minus/plus buttons, picks a plan, switches to yearly, or starts trial. |
- The seat slider carries an explicit
<label>andaria-valuetext(for example"20 seats"); every rolling number pairs anaria-hiddenodometer with visually hidden full text. - The billing control uses
role="radiogroup"with rovingtabIndex, plan cards usearia-labelledby, feature lists carry per-planaria-labels, and plan choose buttons exposearia-pressed. - A pre-mounted polite
role="status"live region announces seat changes, billing switches, plan picks, and started trials. - Container queries stack plan cards into one column below
860px(collapsing unselected cards' pitch and features to prevent long scrolls), tighten padding below560px, and wrap savings pills below360px. Logical CSS properties and RTL slider/frame math mirror cleanly indir="rtl", and@media (forced-colors: active)maps tracks, thumbs, frames, and badges to system colors.
Motion & theming
The selection frame interpolates toward the live measured card box on the smooth spring (0.4s, zero overshoot) while the Recommended badge and billing thumb glide on shared layoutId springs. Prices roll on odometers, changed phrases rise through a subtle blur, and dynamic feature rows expand and collapse smoothly.
Under prefers-reduced-motion: reduce, springs, travel, blur, and press scales turn off while copy swaps fall back to 120ms opacity fades. Setting motion="none" makes every transition immediate (0ms).
theme accepts mode, accent, and typed tokens across these groups:
| Token group | CSS custom properties |
|---|---|
core | --ui-surface, --ui-surface-raised, --ui-text, --ui-text-secondary, --ui-muted, --ui-border, --ui-highlight, --ui-accent, --ui-accent-foreground, --ui-danger, --ui-focus-ring, --ui-radius, --ui-border-width, --ui-shadow, --ui-disabled-opacity, --ui-font, --ui-font-size, --ui-font-weight |
extended | --ui-surface-sunken, --ui-border-strong, --ui-border-subtle, --ui-track, --ui-info, --ui-success, --ui-warning, --ui-tone-foreground, --ui-overlay, --ui-tint-strength |
shape | --ui-radius-sm, --ui-popup-radius, --ui-surface-radius |
control | --ui-control-height, --ui-control-padding-x, --ui-control-gap, --ui-icon-size |
type | --ui-font-mono, --ui-font-display |
elevation | --ui-shadow-resting, --ui-shadow-raised |
selectionControl | --ui-control-on, --ui-control-glyph, --ui-track, --ui-control-track-hover, --ui-control-thumb, --ui-control-thumb-on, --ui-control-fill, --ui-shadow-thumb |
accentTones | --ui-accent-strong, --ui-accent-subtle |
An application-wide UtherealProvider supplies defaults.
Composition
In an agent composition, PricingCalculator is a leaf block. Supply unique ascending seatStops, plans.length - 1 recommendFrom thresholds, descending volumeTiers, and wire selectAction and startTrialAction to registered host actions. See Building with agents.
{
"type": "PricingCalculator",
"props": {
"defaultSeats": 50,
"defaultInterval": "yearly",
"currency": "USD",
"selectAction": "select_calculator_plan",
"startTrialAction": "start_calculator_trial"
},
"children": []
}