LinusBorg / portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
http://portal-vue.linusb.org
MIT License
3.89k stars 188 forks source link
portal vuejs

PortalVue

A Portal Component for Vue 3, to render DOM outside of a component, anywhere in the document.

PortalVue Logo

Buy Me a Coffee at ko-fi.com

For more detailed documentation and additional Information, [please visit the docs](https://next.portal-vue.linusb.org). > Looking for the version for Vue 2.\*? [Docs for PortalVue 2.*, compatible with Vue 2, are here](https://v2.portal-vue.linusb.org) ## Installation ```bash npm i portal-vue # or yarn add portal-vue ``` ```javascript import PortalVue from 'portal-vue' Vue.use(PortalVue) ``` ## Usage ```html

This slot content will be rendered wherever the with name 'destination' is located.

``` ## Nuxt module v3 does not yet have a nuxt module integration. PRs welcome.