Module

Freedom.Portal

Package
purescript-freedom-portal
Repository
purescript-freedom/purescript-freedom-portal

#PortalRoot Source

type PortalRoot = { id :: String, z :: Int }

The type of portal root.

  • id: The id of portal root dom
  • z: The z-index of portal root dom

#portal Source

portal :: forall state f. Functor (f state) => PortalRoot -> VNode f state -> VNode f state

Render a VNode to the portal root.

The portal root will be created automatically.