# 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)

Repository: https://github.com/LinusBorg/portal-vue
Canonical: https://ross.abutalabs.com/products/portal-vue
Homepage: http://portal-vue.linusb.org
Language: Vue
License: MIT
License Family: permissive
Topics: vuejs, portal
Last push: 2023-11-25T19:14:42+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3532, "days_push": 1012, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3887, forks 182 (observed 2026-08-28T04:08:28.246164+00:00)

## What it is
PortalVue is a Vue 3 plugin providing Portal and PortalTarget components that render a component's template anywhere in the DOM, even outside the Vue app's root element. It is an alternative to Vue's built-in Teleport with additional features like named portals and source toggling.

## Use cases
- render modals at the document body level
- render tooltips or popovers outside the component tree
- teleport slot content to a named target elsewhere in the app
- build overlay and dialog systems in Vue 3
- render content outside the Vue app mount element

## When to choose
- you need named portals or features beyond Vue's built-in Teleport
- you maintain a Vue 2 codebase using portal-vue v2
- you need fine-grained control over where content renders in the DOM

## When to avoid
- you only need basic teleporting - Vue 3's built-in Teleport is recommended by the author
- you need a Nuxt module integration for Vue 3 (not yet available)
- you need to support legacy browsers without ES Modules support

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework, templating
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: vue, vue3, portal, dom-rendering, teleport, overlays, modals, nodejs

## Member repositories
- LinusBorg/portal-vue (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.246164+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:38.872878+00:00, confidence not recorded.
  - readme: https://github.com/LinusBorg/portal-vue (fetched 2026-08-28T04:08:28.246164+00:00, sha 3f61124082bb)
  - homepage: http://portal-vue.linusb.org (fetched 2026-08-29T09:19:55.385545+00:00, sha 76b77520f99b)
  - site_page: https://portal-vue.linusb.org/guide/getting-started (fetched 2026-08-29T09:19:55.394549+00:00, sha a30246428c44)
  - registry_npm: https://registry.npmjs.org/portal-vue (fetched 2026-08-29T09:19:55.398008+00:00, sha 06868c256fa1)
  - site_page: https://v2.portal-vue.linusb.org (fetched 2026-08-29T09:19:55.396470+00:00, sha 4aceceeaa858)
- Data as of 2026-08-30T08:39:29.467469+00:00.
