2.0.2 • Published 6 months ago

vue3-portal v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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" />
2.0.2

6 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago