Table of Contents

Class PortalNode

Namespace
Velvet
Assembly
Velvet.Docs.dll

Node that renders children into a different VisualElement registered in FiberPortalRegistry, rather than at their position in the VNode tree. Used when a component's children are logically scoped to it but should be placed near the DOM root, such as modals or overlays.

public sealed class PortalNode : VNode
Inheritance
object
PortalNode
Inherited Members

Properties

Children

Array of child nodes to render at the mount target.

FocusOrder

How the layer host panel participates in sequential (Tab) focus order relative to the declaring panel — see PanelFocusOrder. Only meaningful for a layer portal (Layer set); a registry-target portal mounts into the same panel and has no boundary to chain across.

Layer

Framework-managed screen-space layer panel this portal's children attach to (null for a registry-target portal). One host panel exists per layer per reconciler, sorted around the app's main panel, destroyed on reconciler disposal.

TargetElement

The container this portal's children attach to, held by the caller rather than published under a name. Null when the portal targets a registered id or a layer panel.

TargetId

ID of the mount target registered in FiberPortalRegistry. Null when the portal targets a framework-managed layer panel (Layer) or an element the caller holds (TargetElement) — exactly one of the three is non-null.