Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

MeekoTeleportProps

interfaz Since 1.5.0

Props de la etiqueta propia <MeekoTeleport>, que pinta su contenido (el snippet default) en otro lugar del documento sin sacarlo del componente que lo declara: conserva su ámbito reactivo, sus eventos, sus snippets, provide/inject, sus manejadores de errores y el CSS scoped. El HTML del servidor ya trae el contenido en su destino. El editor muestra estas props en el hover de la etiqueta. Se autoimporta en app/ y en los componentes, como MeekoLinkProps.

ts
import type { MeekoTeleportProps } from "@meekojs/meeko/framework";

Source code src/framework.ts:419

Declaración #

ts
interface MeekoTeleportProps extends TeleportProps {}

Example #

meeko
<script lang="ts">
const isMobile = signal(false);
function save(): void {}
</script>
<template>
  <MeekoTeleport to="#toolbar" bind:disabled="isMobile.value">
    <button type="button" on:click="save">Guardar</button>
  </MeekoTeleport>
</template>

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/framework.ts