UI

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.

20 seats
  • 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

    Recommended

    For 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

Loading interactive preview…

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.

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

    Recommended

    For 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.

5 seats
  • Starter

    Recommended

    For 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

ConditionCard behavior
seats <= plan.maxSeatsShows rolling per-seat price, period total, and Choose / Selected button.
seats > plan.maxSeatsDims pitch and features, swaps price for the limit notice, and offers Use {max} seats to step down.
seats >= tier.fromSeatsSubtracts 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.

ArgumentType / defaultDescription
titlestringDefault: "Pay for the seats you use"Heading and accessible section name.
descriptionstringDefault: "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.
seatStopsnumber[]Default: [5,10,20,50,100,250]Ascending, unique seat counts the slider stops at. Two to twenty four.
defaultSeatsintegerDefault: 20Seat count picked on first render; it snaps to the nearest stop. Edits do not reset a mounted instance.
defaultIntervalmonthly | yearlyDefault: "yearly"Billing interval picked on first render.
plansPricingPlan[]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.
recommendFromnumber[]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.
volumeTiersVolumeTier[]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.
currencystringDefault: "USD"ISO 4217 currency code used to format every price, e.g. USD.
seatLabelstringDefault: "{count} {noun}"Team size template; {count} fills the seat count, {noun} the singular or plural noun.
seatNounstringDefault: "seats"Plural noun of the team size unit, e.g. "seats".
fewerLabelstringDefault: "One fewer seat step"Accessible name of the minus step button.
moreLabelstringDefault: "One more seat step"Accessible name of the plus step button.
monthlyLabelstringDefault: "Monthly"Label of the monthly billing option.
yearlyLabelstringDefault: "Yearly"Label of the yearly billing option.
monthlyNotestringDefault: "A month for {seats}"Plan total note under monthly billing; {seats} fills the seat label.
yearlyNotestringDefault: "Billed yearly for {seats}"Plan total note under yearly billing; {seats} fills the seat label.
perSeatLabelstringDefault: "Per seat, per month"Unit line under each plan price.
recommendedLabelstringDefault: "Recommended"Badge that glides to the plan fitting the seat count.
chooseLabelstringDefault: "Choose {name}"Plan action label; {name} fills the plan name.
selectedLabelstringDefault: "Selected"Plan action label once the plan is chosen.
limitTitleLabelstringDefault: "{name} fits up to {max} {noun}"Limit note title on an over-cap plan; {name}, {max}, and {noun} fill in.
limitBodyLabelstringDefault: "You picked {seats}."Limit note body; {seats} fills the seat label.
useSeatsLabelstringDefault: "Use {max} {noun}"Over-cap plan action label; {max} and {noun} fill in.
totalsLabelstringDefault: "{name}, {seats}"Totals line; {name} and {seats} fill in.
perYearLabelstringDefault: "per year"Unit after the yearly total.
perMonthLabelstringDefault: "per month"Unit after the monthly total.
perSeatNoteLabelstringDefault: "{price} per seat per month"Totals note; {price} fills the formatted per-seat price.
billedYearlyNoteLabelstringDefault: ", billed once a year"Totals note suffix under yearly billing.
saveLabelstringDefault: "You save {amount} a year"Savings line under yearly billing; {amount} the saving.
saveSwitchLabelstringDefault: "Save {amount} with yearly billing"Monthly-billing switch action; {amount} the yearly saving.
startLabelstringDefault: "Start {name} trial"Trial action label; {name} fills the selected plan.
startedLabelstringDefault: "Trial started"Trial action label while the started note shows.
trialDaysLabelstringDefault: "14 day trial on every plan"Trial length note in the totals bar.
trialAnnouncementLabelstringDefault: "Trial of {name} started for {seats}."Live region announcement when the trial starts; {name} and {seats} fill in.
billingAnnouncementLabelstringDefault: "Yearly billing. Prices shown per seat per month, billed once a year."Live region announcement when yearly billing is chosen.
monthlyAnnouncementLabelstringDefault: "Monthly billing"Live region announcement when monthly billing is chosen.
seatsAnnouncementLabelstringDefault: "{count} {noun}"Live region announcement for the picked team size; {count} and {noun} fill in.
selectActionstring—Registered host action requested when a plan is chosen; reports the plan ID.
startTrialActionstring—Registered host action requested when the trial button is pressed; reports the plan ID.
localestring—BCP 47 locale for currency formatting; inherited when omitted.
recipestudio | softDefault: "studio"Visual treatment. Both recipes preserve interaction behavior.
themePricingCalculatorThemeDefault: {}Color mode, accent, and typed semantic token overrides.
motionnone | subtle | expressiveDefault: "subtle"Animation preset. System reduced-motion preferences take precedence.
motionOptionsPricingCalculatorMotionOptionsDefault: {}Selection frame, badge glide, feature row, and copy swap timing overrides in milliseconds.
dirltr | rtl—Reading direction; inherited from the page when omitted.
  • PricingPlan accepts { id, name, pitch, monthly, yearly, maxSeats?, volume?, features }. Plan IDs must be unique, yearly cannot exceed monthly, and recommendFrom must contain plans.length - 1 ascending thresholds.
  • PlanFeature accepts { 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.
  • VolumeTier accepts { fromSeats, offPerSeat }, listed in descending fromSeats order so the highest matching tier applies first.

React integration

PropPurpose
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.
presetApplication defaults overridden by explicit instance arguments.
tokensCSS variables applied after the typed theme, forwarded to root and composed buttons.
ref, className, styleApplied to the root <section> element.
Native attributesid, aria-*, data-*, and remaining <section> props forwarded to the root element.

Keyboard & accessibility

KeyAction
ArrowLeft / ArrowRight (on slider)Moves between seat stops on the native <input type="range"> control.
Home / End / PageUp / PageDownJumps to the lowest, highest, or adjacent seat stops.
ArrowLeft / ArrowRight (billing)Switches between Monthly and Yearly in the radiogroup and moves focus (RTL).
Enter / SpaceSteps seats via minus/plus buttons, picks a plan, switches to yearly, or starts trial.
  • The seat slider carries an explicit <label> and aria-valuetext (for example "20 seats"); every rolling number pairs an aria-hidden odometer with visually hidden full text.
  • The billing control uses role="radiogroup" with roving tabIndex, plan cards use aria-labelledby, feature lists carry per-plan aria-labels, and plan choose buttons expose aria-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 below 560px, and wrap savings pills below 360px. Logical CSS properties and RTL slider/frame math mirror cleanly in dir="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 groupCSS 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": []
}

On this page