Skip to main content

Portal API Overview

Initialization

<script>
import { Portal } from "wx-svelte-core";
</script>

<Portal>
<Popup>
<div class="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

targetthe DOM node that receives the content sent by the Portal component
themeapplies the specified theme for a component moved via the portal