Skip to main content

Portal API Overview

Initialization​

<script setup>
import { Portal } from "@svar-ui/vue-core";
</script>

<template>
<Portal>
<Popup>
<div class="popup">
<p>Some text here and there</p>
</div>
</Popup>
</Portal>
</template>
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