Skip to content
API reference

blocks/pricing-card

Import
import * as api from "@fungi.computer/caps/blocks/pricing-card";
Kind Export Description
type alias PricingPlan Caller-provided pricing plan data.
type alias PricingCardLayout Supported PricingCard layouts.
type alias PricingCardProps Props accepted by PricingCard.
constant PricingCard Displays supplied plan data and slots; checkout and policy stay with the host.

PricingPlantype alias

Section titled “PricingPlan”
Signature
type PricingPlan = object;

Caller-provided pricing plan data.

Signature
name: ReactNode;
Signature
optional description?: ReactNode;
Signature
optional price?: ReactNode;
Signature
optional interval?: ReactNode;

PricingCardLayouttype alias

Section titled “PricingCardLayout”
Signature
type PricingCardLayout = "stacked" | "banded";

Supported PricingCard layouts.


PricingCardPropstype alias

Section titled “PricingCardProps”
Signature
type PricingCardProps = HTMLAttributes<HTMLDivElement> & object;

Props accepted by PricingCard.

Name Type Description
plan PricingPlan -
features? ReactNode Caller-owned feature rows.
action? ReactNode Caller-owned action control; this block never invokes or configures it.
status? ReactNode Caller-owned status content, such as a badge.
art? ReactNode Caller-owned illustration, such as an img with its own alt text.
layout? PricingCardLayout stacked groups the title and price in the header. banded places the name above the illustration and keeps the price on one line.
featured? boolean Marks the one plan a page recommends with a heavier shadow.
density? CardProps["density"] Use tighter section spacing for dense plan comparisons.

PricingCardconstant

Section titled “PricingCard”
Signature
const PricingCard: ForwardRefExoticComponent<
HTMLAttributes<HTMLDivElement> & object & RefAttributes<HTMLDivElement>
>;

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