Skip to main content
<FeatureGuard> checks a feature key against the tenant’s plan and renders either the protected content or a fallback.

Usage

Props

Fallback with Upgrade CTA

vs useFeatureAccess

Use <FeatureGuard> for declarative JSX gating. Use useFeatureAccess when you need to control behavior imperatively (e.g., disable a button, redirect programmatically).