Skip to content

PricingTableProps

Defined in: src/react/index.tsx:387

Props for PricingTable. Pass pricing or catalog, or neither to use the provider’s.

Type Parameter Default type
P extends string string
Property Type Description Defined in
actionLabel? (plan, relation) => ReactNode Button text. Default "Current plan" / "Upgrade" / "Downgrade" / "Choose". src/react/index.tsx:397
catalog? AnyCatalog Or the catalog itself (current, non-hidden plans). src/react/index.tsx:391
className? string - src/react/index.tsx:403
currentPlan? P Marked data-current; its button is disabled. Default: the provider’s customer plan. src/react/index.tsx:393
group? string Only plans of this group. src/react/index.tsx:402
onSelect? (plan) => void Show a button per plan; called with its key. src/react/index.tsx:395
pricing? PricingTable A PricingTable (e.g. from GET /api/pricing or pricingTable(catalog)). src/react/index.tsx:389