Dot Pricing
Flip the switch and each price rolls on its drums to the new figure, one digit after another across the cards, smaller prices coming down from above. The plan you want people on is picked out in the accent, and each price is written out in full for screen readers.
Needs: None. One small canvas per price.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| plans | PricingPlan[] | – | id, name, blurb?, monthly (null: custom), yearly? (a year's price), custom?, features?, cta?, href?, featured? (true or a badge), note?. |
| billing | "monthly" | "yearly" | – | Controlled billing. Leave unset to let it keep its own. |
| defaultBilling | "monthly" | "yearly" | "monthly" | Billing at first, when uncontrolled. |
| onBillingChange | (billing) => void | – | Called when the switch is flipped. |
| onSelect | (plan, billing) => void | – | Called by a plan's button when it has no href. |
| currency | string | "$" | Before every price. |
| period | string | "/mo" | After every price. |
| saveLabel | ReactNode | "Save N%" | Beside the switch; by default the best yearly saving. |
| tone | string | – | The picked-out plan's colour. The page's accent by default. |
| pitch | number | 5 | Size of one price dot, px. |
| className | string | – | Class on the table. |
| style | CSSProperties | – | Style on the table. |