Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/linusborg/portal-vue
- Owner: LinusBorg
- License: mit
- Created: 2016-12-31T12:33:09.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T19:14:42.000Z (12 months ago)
- Last Synced: 2024-05-17T10:02:57.560Z (6 months ago)
- Topics: portal, vuejs
- Language: Vue
- Homepage: http://portal-vue.linusb.org
- Size: 3.53 MB
- Stars: 3,877
- Watchers: 36
- Forks: 189
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PortalVue
> A Portal Component for Vue 3, to render DOM outside of a component, anywhere in the document.
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.