mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
dc47c64f14
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Sébastien Chopin <seb@nuxtjs.com> Co-authored-by: Pooya Parsa <pooya@pi0.io> Co-authored-by: pooya parsa <pyapar@gmail.com> Co-authored-by: Clément Ollivier <clement.o2p@gmail.com>
16 lines
560 B
Markdown
16 lines
560 B
Markdown
---
|
|
title: "Teleport"
|
|
description: "This example shows how to use the <Teleport> with client-side and server-side rendering."
|
|
toc: false
|
|
---
|
|
|
|
Vue 3 provides the [`<Teleport>` component](https://vuejs.org/guide/built-ins/teleport.html) which allows content to be rendered elsewhere in the DOM, outside of the Vue application.
|
|
|
|
This example shows how to use the `<Teleport>` with client-side and server-side rendering.
|
|
|
|
::ReadMore{link="/api/components/teleports"}
|
|
::
|
|
|
|
::sandbox{repo="nuxt/framework" branch="main" dir="examples/app/teleport" file="app.vue"}
|
|
::
|