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| Name | Type | Default | Description |
|---|---|---|---|
title | string | "Pay for what you use" | The section heading. |
description | string | "Pick a monthly volume and see which plan fits. Change plans any time." | The line under the heading. Leave empty for none. |
volumeLabel | string | "Credits per month" | The label above the volume. |
stops | DotMeterStop[] | DEFAULT_STOPS | The stops of the volume slider, in ascending order of `value`. |
defaultStop | number | 1 | The index of the stop the slider starts at. |
plans | DotMeterPlan[] | DEFAULT_PLANS | The plan columns, in ascending order of `upTo`. |
periods | { monthly: string; yearly: string; badge?: string } | DEFAULT_PERIODS | The names of the two billing periods and an optional saving badge on the yearly one. |
defaultPeriod | DotMeterPeriod | "monthly" | The billing period the toggle starts at. |
currency | string | "$" | The sign written before each price. |
perLabel | string | "/month" | Text after each price. |
recommendedLabel | string | "Recommended" | The badge on the highlighted plan. |
onChange | (change: { volume: number; plan: string; period: DotMeterPeriod }) => void | None | Called with the chosen volume, the highlighted plan's id and the billing period when either changes. |
className | string | None |