OverlayContainer
Use the OverlayContainer
to create a portal, rendering children in a container
that is located outside the hierarchy of the parent component.
Import
import { OverlayContainer } from '@dynatrace/strato-components-preview/core';
Use cases
If you want to read more about portals, visit the Portals documentation.
If you use the OverlayContainer
without specifying any props, it will render
the children at the end of the body
.
Props
OverlayContainerProps
extends
Name | Type | Default | Description |
---|---|---|---|
portalContainer? | document.body | The container element in which the overlay portal will be placed. |
ModalContextProviderProps
extends
<>
Name | Type | Default | Description |
---|---|---|---|
children | - |
Still have questions?
Find answers in the Dynatrace Community