Skip to main content

Portal API Overview

Initialization

import { Portal, Popup } from "@svar-ui/react-core";

<Portal>
<Popup>
<div className="popup">
<p>Some text here and there</p>
</div>
</Popup>
</Portal>
tip

Visit the Features Guide to learn more about the control's functionality.

Portal Properties

targetOptional. The DOM node that receives the content sent by the Portal component
themeOptional. Applies the specified theme for a component moved via the portal