• Stars
    star
    3,772
  • Rank 11,665 (Top 0.3 %)
  • Language Vue
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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)

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.

Looking for the version for Vue 2.*? Docs for PortalVue 2.*, compatible with Vue 2, are here

Installation

npm i portal-vue

# or

yarn add portal-vue
import PortalVue from 'portal-vue'
Vue.use(PortalVue)

Usage

<portal to="destination">
  <p>This slot content will be rendered wherever the <portal-target> with name 'destination'
    is  located.</p>
</portal>

<portal-target name="destination">
  <!--
  This component can be located anywhere in your App.
  The slot content of the above portal component will be rendered here.
  -->
</portal-target>

Nuxt module

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

More Repositories

1

composition-api-demos

A Vue.js app demonstarting various use cases for the new composition API
JavaScript
517
star
2

vue-mixable

Turn Vue Mixins into Composables with a simple wrapper function
TypeScript
282
star
3

vue-simple-portal

A simpler Portal implementation focussed on moving slot content to the end of the body element
JavaScript
217
star
4

vue-reactive-provide

Plugin/Mixin wrapping Vue's static 'provide/inject' feature allowing to easily pass reactive data to children
JavaScript
116
star
5

vue-lib-template

a personal template to boostrap the boilerplate for developing Vue libraries in a pnpm monorepo
TypeScript
70
star
6

vue-cli-plugin-test-attrs

A small plugin vor vue-cli 3 that adds a compiler plugin to remove data-test attributes when desired
JavaScript
65
star
7

slidev-theme-vuetiful

A Slidev Theme for my talks about Vue.js
Vue
63
star
8

talks

Collection of talks I gave
HTML
44
star
9

varia

Vuejs 3 baseline components and composables fo building WAI-ARIA compatible UI components
TypeScript
33
star
10

vueday-enterjs-vue3

Talk slides for Enter.js Vue Day (15.06.2021)
Vue
24
star
11

vue-filedrop

[WIP, NOT READY] A set of composable Vue components to create rich Dropzone-like UI elments and behaviour
JavaScript
14
star
12

talks_2018-11_VuejsRoadtrip-Berlin

Slides of the talk I gave at Vuejs Roadtrip Berlin, 2018-11-23
11
star
13

vue-directive-clickout

a directive to catch clicks outside of an element, compatible with Vue 2.0 only
10
star
14

vue-ko-fi-button

the Ko-fi Buttton (www.ko-fi.com) implemented as a Vue component (no affiliation)
Vue
6
star
15

vue-teleport-plus

A superior Teleport component experience for Vue 3
TypeScript
5
star
16

tailwindui-listbox-vue3-demo

TypeScript
5
star
17

eslint-config

JavaScript
4
star
18

create-vue-ts-eslint-airbnb-example

Example Repo demonstrating how to add the Airbnb config to a Typescript-Vue Project created with create-vue
Vue
4
star
19

demo-project-building-portals-in-vue

Created with CodeSandbox
Vue
3
star
20

vue-inject-helpers

[WIP] Wrapper components for Vue.js to pass injected properties as props to a child component
JavaScript
3
star
21

talk-thinking-in-script-setup

My talk for Vuejs Germany 2022 in Berlin
Vue
1
star
22

talk-cross-compatible-vue-components

Slides for my talk at Vuejs Amsterdam 2022
Vue
1
star