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.

MeekoPopoverProps

interfaz Since 1.5.0

Props de la etiqueta propia <MeekoPopover>: un contenido en la capa superior (popover), anclado a su disparador con CSS anchor positioning (con un cálculo en JavaScript donde el navegador no lo tiene). El modelo por defecto (model="open") es la señal de apertura y on:toggle emite { open }. El editor muestra estas props en el hover de la etiqueta y lleva aquí con «Ir a definición». Se autoimporta en app/ y en los componentes, como MeekoLinkProps.

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

Source code src/framework.ts:444

Declaración #

ts
interface MeekoPopoverProps extends PopoverProps {}

Example #

meeko
<!-- app/components/ActionsMenu.meeko: un menú que recibe dónde se abre -->
<script lang="ts">
const props = defineProps<{ placement?: MeekoPopoverProps["placement"] }>();
</script>
<template>
  <MeekoPopover role="menu" bind:placement="props.placement">
    <snippet name="trigger">Acciones</snippet>
    <button role="menuitem">Archivar</button>
  </MeekoPopover>
</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