headless

API portal

Portal

function

Portal(param): Element

A Portal component, allowing to attach content to an external container.

Parameters
param

PropsWithChildren<{ container: Element | DocumentFragment | null | undefined; }>

the react component inputs

Returns

Element

the portal component