PortalProvider
PortalProvider is a container hosts a DOM element (a portal root container) where `<Portal>`
render its children.
It is useful for rendering modals, popovers, tooltips, etc and must be used
together with `<Portal>` or with `usePortalProvider` hook.
import { PortalProvider } from '@contember/ui'
const App = () => (
<PortalProvider>
<Portal>...</Portal>
</PortalProvider>
)
PortalProviderProps
PortalProviderProps
children*
React.ReactNode
className
string
id
string