Body Teleport
To teleport content to the special#teleports target (which has full SSR support in Nuxt):
Client-side Teleport
For other CSS selectors, wrap<Teleport> in <ClientOnly> to ensure client-side only rendering:
Props
A CSS selector string or an actual DOM node where the content should be teleported.
For SSR support in Nuxt, use
to="#teleports". Other targets require wrapping in <ClientOnly>.When
true, the content will not be teleported and will remain in its original location.Learn More
Vue Teleport Documentation
Read more about the
<Teleport> component in Vue’s official documentation.