Concepts
OverviewCompositionTestingLayout
Aspect RatioBleedBoxCenterContainerDividerFlexFloatGridLink OverlayScrollableStackWrapComponents
AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTAModalDate PickerDialogFieldFieldsetFile UploaderIcon ButtonInputLoading StatesMenuNotificationsNumber InputPin InputProgressPrompt ModalRadioRatingSelectSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltipUtilities
Feature FlagsForLocal StoragePortalShowsplitPropsThemeimport { FeatureFlags, FeatureFlag } from '@cerberus/react'Usage
API
export interface FeatureFlagsProviderValue { flags: Record<string, boolean>}
export interface FeatureFlagProps { // A unique key of the flags data passed into the provider. flag: string}
define function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>): JSX.ElementProps
The FeatureFlag component accepts the following props:
| Name | Default | Description |
|---|---|---|
| flag | null | A unique key of the flags data passed into the provider. |
On this page