Skip to content

Vizel API / react/src / VizelPortal

Function: VizelPortal()

ts
function VizelPortal(__namedParameters): ReactNode;

Defined in: packages/react/src/components/VizelPortal.tsx:39

Portal component for rendering content outside the DOM hierarchy.

Renders children into a portal container at the document body level, ensuring proper z-index stacking for floating UI elements.

Parameters

ParameterType
__namedParametersVizelPortalProps

Returns

ReactNode

Examples

tsx
<VizelPortal layer="dropdown">
  <DropdownMenu />
</VizelPortal>

Disabled portal (renders in place)

tsx
<VizelPortal disabled>
  <Content />
</VizelPortal>

Released under the MIT License.