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
target | the DOM node that receives the content sent by the Portal component |
theme | applies the specified theme for a component moved via the portal |