headless

API portal

portal

function

portal(node, args): void | object

Creates a portal directive, allowing to attach content to any element.

Parameters

node: SSRHTMLElement

args: PortalDirectiveArg

Returns

void | object

the portal directive


PortalDirectiveArg

type alias

PortalDirectiveArg: object | null | undefined

Represents the arguments for a portal directive.