Skip to main content

Import

Basic usage

Fetches all your products and renders a complete pricing page with:
  • Pricing cards with feature comparison
  • Monthly/yearly toggle
  • “Current Plan” badge for subscribed users
  • Upgrade/downgrade buttons
  • Built-in checkout modal (opens automatically on plan select)
PricingTable component

Props

string[]
Filter which products to display. Omit to show all active products.
boolean
default:"true"
Show the monthly/yearly billing interval toggle.
'month' | 'year'
default:"'month'"
Which billing interval to show by default.
(priceId: string) => void
Custom handler when a plan is selected. When set, the built-in checkout modal won’t open — you handle the flow yourself.
(subscription: any) => void
Called after a successful checkout or plan change.
string
Heading displayed above the pricing table.
string
Subheading displayed below the title.
object
Prefill customer information in checkout.
Custom footer text below the pricing cards. Set to null to remove the footer entirely.
boolean
default:"false"
Compact layout for embedding in smaller spaces like sidebars.

Examples

Filtered plans with yearly default

Custom plan selection

With customer prefill

Compact mode