Skip to content
Proyectos

LinusBorg/portal-vue has 3,875 GitHub stars and 181 forks. GitHot measured -1 stars in 24 hours, -2 in 7 days, and -1 in 15 days. Last checked 2026-11-24 13:59 UTC. Last push 2023-11-25.

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
-1
in 7 days
-2
in 15 days
-1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

Acerca de

Un plugin Portal con numerosas funciones para Vue 3 que permite renderizar el DOM fuera de un componente, en cualquier lugar de tu aplicación o en todo el documento. (Versión para Vue 2: v2.portal-vue.linusb.org)

Creación y multimedia

README.md

Original

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.

Looking for the version for Vue 2.*? Docs for PortalVue 2.*, compatible with Vue 2, are here

Installation

npm i portal-vue

# or

yarn add portal-vue
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 anywhere in your App.
  The slot content of the above portal component will be rendered here.
  -->
</portal-target>

Nuxt module

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

Explorar proyectos relacionados

Cargando…