@oku-ui/portal
v0.6.1
Published
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Downloads
727
Readme
Portal
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
| |
Installation
$ pnpm add @oku-ui/portal
Usage
<script setup lang="ts">
import { OkuPortal } from '@oku-ui/portal'
</script>
<template>
<OkuPortal>
<h1>This content is rendered in a portal (another DOM tree)</h1>
</OkuPortal>
</template>
...