<Paywall> renders its children only when the tenant has an active subscription. Otherwise it shows a customizable upgrade prompt.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Content shown when subscribed |
fallback | ReactNode | Built-in upgrade prompt | Content shown when not subscribed |
loadingFallback | ReactNode | null | Content shown while loading |
Custom Fallback
Behavior
| Subscription Status | What renders |
|---|---|
| Loading | loadingFallback |
active or trialing | children |
past_due, canceled, expired, none | fallback |