Import
import { Portal } from '@contentful/f36-utils';
Example
Basic usage
<Flex> <Portal> <Flex style={{ backgroundColor: 'gray', }} > Hi! I'm first in the document flow, but will be rendered at the end of the document! </Flex> </Portal> Parent component content </Flex>
Props (API reference)
Open in Storybook
Name | Type | Default |
|---|---|---|
| children required | ||
| container | Document HTMLElement Container element for Portal |