Skip to content
PixiKit

Dot Meter

A pricing panel with a volume slider and the volume written in dots: the plan that covers it lights up with a Recommended badge, and prices re-roll in dot text when the volume or the billing period changes.

pixikit.com/docs/blocks/pricing/dot-meter

Customize

Default stop1
Default period

Props

13
NameTypeDefaultDescription
titlestring"Pay for what you use"The section heading.
descriptionstring"Pick a monthly volume and see which plan fits. Change plans any time."The line under the heading. Leave empty for none.
volumeLabelstring"Credits per month"The label above the volume.
stopsDotMeterStop[]DEFAULT_STOPSThe stops of the volume slider, in ascending order of `value`.
defaultStopnumber1The index of the stop the slider starts at.
plansDotMeterPlan[]DEFAULT_PLANSThe plan columns, in ascending order of `upTo`.
periods{ monthly: string; yearly: string; badge?: string }DEFAULT_PERIODSThe names of the two billing periods and an optional saving badge on the yearly one.
defaultPeriodDotMeterPeriod"monthly"The billing period the toggle starts at.
currencystring"$"The sign written before each price.
perLabelstring"/month"Text after each price.
recommendedLabelstring"Recommended"The badge on the highlighted plan.
onChange(change: { volume: number; plan: string; period: DotMeterPeriod }) => voidNoneCalled with the chosen volume, the highlighted plan's id and the billing period when either changes.
classNamestringNone

Related