Drop in Autumn’s components to handle upgrades, downgrades, paywalls etc
productDetails
prop to add information to the pricing card contents.
/components
directory, under a /autumn
folder.
productDetails
, which can be used to pass in content that can override the default contents (which are generated from your Autumn products). The example below was used to render the screenshot above.
You can choose which products should be displayed, and what items each card should have. The items array can either take an object with primaryText
and secondaryText
properties, or a string with the featureId
, which will just take the item from Autumn’s default contents.
pricing-table
, a @/lib/autumn/pricing-table-content.tsx
file is also installed. This file contains the pricing card button texts for each scenario
, which you can customize how you want.
/components
directory, under a /autumn
folder.
checkout-dialog
component to the checkout()
hook. This allows Autumn to automatically open the checkout dialog when they want to change their active product. The dialog will open if:
checkout-dialog
, a @/lib/autumn/checkout-content.tsx
file is also installed. This file contains the dialog texts for each scenario
(returned from the checkout
function), which you can customize how you want.
paywall-dialog
component in your /components
directory, under a /autumn
folder.
paywall-dialog
component to the check
function (exported from the useCustomer
hook).
check()
function, Autumn will automatically pass in the withPreview: true
parameter. If data.allowed: false
is returned for the feature, the paywall will open with the following details:
paywall-dialog
component is installed, a /lib/autumn/get-paywall-content.tsx
file is also installed. This file contains the dialog texts for each scenario (depending on the available products), which you can customize how you want.