Pricing Card
A subscription tier card with a gradient price and a tick/dash feature list. Pass highlighted for the recommended-tier treatment - the header inverts to the opposite polarity of the page and the CTA becomes a GlowButton. Either surface style, surface="flat" or surface="framed", works with either tier.
Installation
npx stepwise-ui add pricing-card
Standard - Flat
One uniform surface, and the CTA is a regular slide-icon Button.
Standard - Framed
Same tier, surface="framed" insets the header in its own panel with a thin outer frame.
Most Popular - Flat
highlighted inverts the header and swaps the CTA for a GlowButton.
Most Popular - Framed
The recommended-tier treatment with the framed surface.
Props
PropTypeDescription
planNamestringPlan name.
pricenumber | stringNumeric price, or a string like "Custom".
periodstringShown after the price. Default "/month".
currencystringCurrency symbol. Default "$".
descriptionstringOne-line plan summary.
featuresPricingFeature[]{ label, included? } - included defaults true; false dashes and mutes it.
ctaLabelstringCTA button label. Default "Upgrade now".
onCta() => voidCTA click handler.
highlightedbooleanThe recommended-tier treatment - header inverts, CTA becomes a GlowButton.
surface"flat" | "framed""flat" - one uniform surface (default). "framed" - the header sits in its own inset panel with a thin outer frame.
badgestringDot chip next to the plan name, e.g. "Most popular".