Portal
<Portal> renders children into document.body (or container) so clipped or transformed ancestors cannot trap them.
Props
childrenReactNodeContent.
containerElementDefault:document.bodyWhere to render the children.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | – | Content. |
container | Element | document.body | Where to render the children. |