Skip to content

blocks/pricing-card

PricingPlan = object

Caller-provided pricing plan data.

name: ReactNode

optional description?: ReactNode

optional price?: ReactNode

optional interval?: ReactNode


PricingCardVariant = "outline" | "spec"

Supported PricingCard looks.


PricingCardProps = HTMLAttributes<HTMLDivElement> > & object

Props accepted by PricingCard.

plan: PricingPlan

optional features?: ReactNode

Caller-owned feature rows.

optional action?: ReactNode

Caller-owned action control; this block never invokes or configures it.

optional status?: ReactNode

Caller-owned status content, such as a badge.

optional art?: ReactNode

Caller-owned illustration, such as an img with its own alt text.

optional variant?: PricingCardVariant

outline is the quiet default. spec is a printed spec sheet: an inked name band, a framed illustration window, the price on one line and a hard offset shadow.

optional featured?: boolean

Marks the one plan a page recommends with a heavier shadow.

optional density?: CardProps["density"]

Use tighter section spacing for dense plan comparisons.

const PricingCard: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> > & object & RefAttributes<HTMLDivElement>>>>

Displays supplied plan data and slots; checkout and policy stay with the host.