This page demonstrates how you can mix free and premium content on the same page. Free content is visible to everyone, while premium sections are gated.
This is a free preview section that everyone can access. You might use this to:
Below, you'll see premium content sections that are only visible to subscribers.
This premium content includes:
Subscribe to unlock this content and more.
Notice how you can intersperse free and premium content throughout the same page. This is perfect for:
Subscribe to access advanced code examples, performance tips, and production deployment strategies.
// Mix free and premium content on the same page
<Card>
<CardTitle>Free Content</CardTitle>
<CardContent>Everyone can see this</CardContent>
</Card>
<PaywallGate
customUi={<LockedPreview />}
>
<Card>
<CardTitle>Premium Content</CardTitle>
<CardContent>Only subscribers see this</CardContent>
</Card>
</PaywallGate>
<Card>
<CardTitle>More Free Content</CardTitle>
<CardContent>Back to free content</CardContent>
</Card>