vue3-portal
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

/vue3-portal/

    Package Sidebar

    Install

    npm i vue3-portal

    Weekly Downloads

    140

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    11

    Last publish

    Collaborators

    • vaclavprochazka1