portalRoot

fun RenderContext.portalRoot(scopeContext: ScopeContext.() -> Unit = {}): RenderContext

A portalRoot is needed to use floating components like dev.fritz2.headless.components.modal, dev.fritz2.headless.components.toast and dev.fritz2.headless.components.popOver. Basically all components based upon PopUpPanel.

Should be the last element in document.body to ensure it will not be clipped by other elements.

See also