Reading Variants
useFeatureVariant() — reactive composable returning a flag's current string variant, for when you need the raw value in script rather than rendering via <FeatureVariant>.
ts
function useFeatureVariant(name: FlagName): Ref<string>ts
import { useFeatureVariant } from 'vue-feature-toggles'
const variant = useFeatureVariant('checkoutFlow') // Ref<string>Returns an empty string for boolean flags or unknown flag names.