Portal
The Portal component lets you render its children into a DOM node that exists outside of the Portal's own DOM hierarchy.
Portal API
Import
import { Portal } from '@mui/base/Portal';
// or
import { Portal } from '@mui/base';
The component cannot hold a ref.