FeatureGate
Conditionally show content based on permissions. Shows blurred content with upgrade prompt when locked.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| feature* | string | — | Feature name to display |
| allowed* | boolean | — | Whether access is granted |
| children* | ReactNode | — | Content to gate |
| planName | string | "Pro" | Plan name for upgrade prompt |
| onUpgrade | () => void | — | Called when upgrade is clicked |
| className | string | — | Additional CSS classes |