v0.1 public beta early access on GitHub
Home / Components / feature-gate

Feature GateAndroid

Wraps content behind an upgrade overlay with animated lock badge and haptic upgrade CTA when locked

$ npx lumioui add feature-gate
import { FeatureGate } from "@/components/ui/feature-gate/feature-gate";
Props6
locked boolean When true, children are covered by an upgrade overlay.
onUpgrade? () => void
label? string Overlay label. Default "Pro feature".
upgradeLabel? string Upgrade button copy. Default "Upgrade".
children? React.ReactNode
className? string
Feature Gatefeature-gate.tsx
feature-gate/feature-gate.tsx open

Wraps content behind an upgrade overlay with animated lock badge and haptic upgrade CTA when locked