react-unleash-flags
Version:
React component for Unleash or Gitlab Feature Flags
10 lines (9 loc) • 322 B
TypeScript
import { ReactNode } from 'react';
export declare type FeatureFlagComponentProps = {
name: string;
defaultValue?: boolean;
invert?: boolean;
children: ReactNode;
};
declare const FeatureFlag: ({ name, defaultValue, invert, children }: FeatureFlagComponentProps) => JSX.Element;
export default FeatureFlag;