FlagsterFlagster
SDKs/React/Components

FeatureDisabled

FeatureDisabled component allows you to render a component only when the flag is disabled.

PropTypeDefault
name
string
-

Usage

import { FeatureDisabled } from 'flagster-react';
 
const MyComponent = () => {
  return (
    <FeatureDisabled name="github_auth">
      GitHub Auth is enabled
    </FeatureDisabled>
  );
};

On this page