When to use
When you need display a component outside of the parent it is contained within.
Usage
When not to use
Portals should only be used for alert/dialog level components. Anything else should try to achieve this without the use of a portal.
API
Props
The Portal
component accepts the following props:
Name | Default | Description |
---|---|---|
container | document.body | The mounted element to place the children contents within. |
key | null | A unique key to attached to the Portal instance. |