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.

AttributeValueOf

tipo Since 1.8.0

Valor de un atributo HTML del elemento Tag: cualquier valor de atributo, como antes de 1.8, con los valores del estándar (AttributeValues) como sugerencias para el completado y el hover. Es el tipo de cada clave de ElementAttributes<Tag>.

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

Source code src/shared/html-attribute-values.ts:69

Declaración #

ts
type AttributeValueOf<Tag extends string, Name extends string> = AttributeValues<Tag, Name> | HintedAttributeValue

Type parameters #

Tag extends string

Etiqueta o unión de etiquetas.

Name extends string

Nombre del atributo.

Example #

ts
import type { AttributeValueOf } from "@meekojs/meeko";
// El editor sugiere "submit", "reset" y "button"; cualquier texto sigue siendo válido.
const type: AttributeValueOf<"button", "type"> = "submit";

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/shared/html-attribute-values.ts