Concepts
OverviewCompositionTestingLayout
Aspect RatioBleedBoxCenterContainerDividerFlexFloatGridLink OverlayScrollableStackWrapComponents
AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTAModalDate PickerDialogFieldFieldsetFile UploaderIcon ButtonInputLoading StatesMenuNotificationsNumber InputPin InputProgressPrompt ModalRadioRatingSelectSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltipUtilities
Feature FlagsForLocal StoragePortalShowsplitPropsThemeimport { Portal } from '@cerberus/react'Usage
API
export interface PortalProps { container?: RefObject<HTMLElement>; disabled?: boolean;}
define function Portal(props: PropsWithChildren<PortalProps>): ReactPortal | nullProps
The Portal component accepts the following props:
| Name | Default | Description |
|---|---|---|
| container | document.body | The mounted element to place the children contents within. |
| disabled | false | Disables the portal from rendering. Perfect for when you need to disabled a child Portal that is rendered within another Portal. |
On this page