Plan Switch
Three plan cards with a monthly and yearly switch: a thumb that glides and stretches, prices that roll, a featured card with a slow border sheen and checks that draw in.
pixikit.com/docs/blocks/pricing/plan-switch
Customize
Default period
Props
13| Name | Type | Default | Description |
|---|---|---|---|
eyebrow | string | "Pricing" | A small line above the heading. Leave empty for none. |
heading | string | "Simple plans that grow with you" | The heading of the section. Leave empty for none. |
lead | string | "Pay monthly, or switch to yearly and pay less each month." | The line under the heading. Leave empty for none. |
plans | PlanSwitchPlan[] | DEFAULT_PLANS | The plans, three read best; a featured one goes first when the cards stack. |
currency | string | "$" | The sign written before each price. |
monthlyLabel | string | "Monthly" | Label of the monthly option. |
yearlyLabel | string | "Yearly" | Label of the yearly option. |
saveLabel | string | "Save {percent}%" | The chip beside the yearly option; {percent} is the saving on the featured plan. Hidden when there is none. |
perLabel | string | "per month" | Text after each price. |
billedLabel | string | "billed yearly" | The note that fades in under the price in yearly mode. |
defaultPeriod | "monthly" | "yearly" | "monthly" | The option selected first. |
onPeriodChange | (period: "monthly" | "yearly") => void | None | Called with the new period when the switch changes. |
className | string | None |