vue3-portal

Portal for Vue 3
12,906 7
Install
npm install vue3-portal
Latest Version:2.0.2
Vue:3
License:MIT
Last Updated:Dec 18, 2023
Links: GitHub  ·  npm
Maintainer: vaclavprochazka1

vue3-portal

Inspired by portal-vue

Not compatible with Vue 2

Table of Contents

Installation

Using NPM
npm install vue3-portal

Usage

1.) Add plugin to Vue

You can define your custom breakpoints:

import { createApp } from 'vue';
import Portal from 'vue3-portal';

const app = createApp({});

app.use(Portal);

app.mount('#app');

2.) Usage

<portal to="des">
  <!-- Use whatever you want to teleport inside portal-target -->
</portal>

<portal-target name="des" />

Related Packages

teleporte

Like Vue‘s Teleport component, but different.

12,277 0
vue-portal

teleports the content to another location in the dom

11,764 4
adm-portal

后台管理门户

3,337 1
seok-portal

login with poatal, sso

2,575 3
@kaveraa/followtheme

A scoped theme follows the overlays it opens: dialogs, popovers and toasts porta...

307 0

Version History

Version Released Vue License
2.0.2 >3.0.0 MIT
2.0.1 >3.0.0 MIT
2.0.0 >3.0.0 MIT
1.0.3 MIT
1.0.2 MIT