Portal API
View componentThe full prop reference for the Portal component. Renders children into document.body or a custom container.
Import
tsx
import { Portal } from '@structyl/styled';Props
Portal
Portal utility.
| Prop | Type | Default |
|---|---|---|
| container# | Element | DocumentFragment | nullCustom target container. | — |
| children# | React.ReactNodePortaled content. | — |
Source code
If you didn't find what you need here, read the component implementation .