Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linusborg/portal-vue

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
https://github.com/linusborg/portal-vue

portal vuejs

Last synced: 16 days ago
JSON representation

A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)

Awesome Lists containing this project

README

        

# 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](https://next.portal-vue.linusb.org).

> Looking for the version for Vue 2.\*? [Docs for PortalVue 2.*, compatible with Vue 2, are here](https://v2.portal-vue.linusb.org)

## Installation

```bash
npm i portal-vue

# or

yarn add portal-vue
```

```javascript
import PortalVue from 'portal-vue'
Vue.use(PortalVue)
```

## Usage

```html

This slot content will be rendered wherever the with name 'destination'
is located.

```

## Nuxt module

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