Skip to main content

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.

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community