Skip to content
PixiKit

Usage Calculator

Sliders split into price bands on one side and a rolling total on the other, for any product priced by usage.

pixikit.com/docs/blocks/pricing/usage-calculator

Customize

Currency
Locale
Base fee0
Accent color

Props

12
NameTypeDefaultDescription
titlestring"Pay for what you use"The heading above the calculator. Leave empty for none.
descriptionstring"Move the sliders to match your team. The total updates as you go."The line under the heading. Leave empty for none.
metersUsageCalculatorMeter[]DEFAULT_METERSThe sliders, each with its own graduated price bands.
currencystring"USD"An ISO currency code, e.g. `USD` or `EUR`.
localestring"en-US"How numbers and prices are written, e.g. `en-US` or `de-DE`.
periodstring"month"The period the total is for, shown after it.
baseFeenumber9A flat amount added to every total.
notestring"Prices before tax."A line under the total.
cta{ label: string; href: string }{ label: "Get started", href: "#" }The button under the total.
labelsUsageCalculatorLabelsDEFAULT_LABELSThe words for the total, the base fee, a free band and a unit price.
accentColorstring"#7c3aed"The active band on each slider and the thumbs.
classNamestringNone