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.

TagName

tipo Since 1.5.0

Etiqueta HTML que <component is> puede renderizar: un elemento de los datos HTML de Meeko (MDN) que no sea de metadatos, de script, de documento incrustado ni de texto sin formato. Quedan fuera script, style, iframe, object, embed, template, slot, textarea, title, base, link, meta, head, html, body, noscript, param y fencedframe.

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

Source code src/app/runtime/dynamic-tag.ts:44

Declaración #

ts
type TagName = Exclude<HtmlTagName, ForbiddenTagName>

Example #

meeko
<script lang="ts">
import type { TagName } from "@meekojs/meeko";
// Sin contenido, también vale una etiqueta vacía como "hr" o "img".
const props = defineProps<{ as: TagName; label: string }>();
</script>
<template><component is="props.as" bind:title="props.label" /></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/app/runtime/dynamic-tag.ts