Skip to content
PixiKit

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
NameTypeDefaultDescription
eyebrowstring"Pricing"A small line above the heading. Leave empty for none.
headingstring"Simple plans that grow with you"The heading of the section. Leave empty for none.
leadstring"Pay monthly, or switch to yearly and pay less each month."The line under the heading. Leave empty for none.
plansPlanSwitchPlan[]DEFAULT_PLANSThe plans, three read best; a featured one goes first when the cards stack.
currencystring"$"The sign written before each price.
monthlyLabelstring"Monthly"Label of the monthly option.
yearlyLabelstring"Yearly"Label of the yearly option.
saveLabelstring"Save {percent}%"The chip beside the yearly option; {percent} is the saving on the featured plan. Hidden when there is none.
perLabelstring"per month"Text after each price.
billedLabelstring"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") => voidNoneCalled with the new period when the switch changes.
classNamestringNone

More pricing blocks in Pro

View all

Related