The API documentation of the Portal React component. Learn more about the properties and the CSS customization points.
import Portal from '@material-ui/core/Portal';
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
|children *||node||The children to render into the
|container||union: object |
|A node, component instance, or function that returns either. The
|disablePortal||bool||false||Disable the portal behavior. The children stay within it's parent DOM hierarchy.|
|onRendered||func||Callback fired once the children has been mounted into the
Any other properties supplied will be spread to the root element (native element).