EEnterUI
DocsComponentsThemesDonation
Get Started
      • FeatureFlagToggle
      • EnvironmentBadge
      • ApiKeyField
      • SecretInput
      • WebhookEndpointCard
EnterUIDocsProduct OperationsWorkflow AdminOperationsFeatureFlagToggle
Product OperationsUpdated 6 May 2026

FeatureFlagToggle

Operator-style toggle for a feature flag — name, description, environment, variant, and rollout slot.

Operator-style toggle for a feature flag — name, description, environment, variant, and rollout slot.

#Default usage

Checkout v2

Toggle on/off; experiment chip and rollout percentage stay quiet.

Use new checkoutExperimentalProduction42%
checkout.v2

Roll out the redesigned checkout flow.

Code
<FeatureFlagToggle
  title="Use new checkout"
  flagName="checkout.v2"
  description="Roll out the redesigned checkout flow."
  environment="production"
  rolloutPercent={42}
  variant="experimental"
/>

#Import

Code
import { FeatureFlagToggle, type FeatureFlagVariant } from "@froggdesign/enter-ui-react";

#Accessibility

The toggle is a real Switch with an aria-label derived from title / flagName. Variant chip is rendered with the correct Badge tone and stays visible in addition to color cue.

#API

  • title, description, flagName: copy slots.
  • checked / defaultChecked + onCheckedChange: controlled or uncontrolled.
  • variant: "stable" | "beta" | "experimental" | "deprecated" — drives the variant chip tone.
  • environment: optional EnvironmentBadge slot.
  • rolloutPercent, rollout: compact percent indicator and an extra rollout slot for sliders / percent labels.
  • loading, disabled: standard ops states.

#Styling

Every exported component accepts className. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousRolePicker
NextEnvironmentBadge

On this page

  1. Default usage
  2. Import
  3. Accessibility
  4. API
  5. Styling