Skip to content

A Portal Component for Vuejs, for rendering DOM outside of a component, anywhere in the document.

License

Notifications You must be signed in to change notification settings

posva/portal-vue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PortalVue

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

PortalVue Logo

For more detailed documentation and additional Information, please visit the docs

Installation

npm install --save portal-vue

// in .js
import PortalVue from 'portal-vue'
Vue.use(PortalVue)

Usage

<portal to="destination">
  <p>This slot content will be rendered wherever the <portal-target> with name 'destination'
    is  located.</p>
</portal>

<portal-target name="destination">
  <!--
  This component can be located anwhere in your App.
  The slot content of the above portal component will be rendered here.
  -->
</portal-target>

About

A Portal Component for Vuejs, for rendering DOM outside of a component, anywhere in the document.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Vue 49.0%
  • JavaScript 44.2%
  • CSS 3.4%
  • HTML 3.4%