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.

HeadLink

interfaz Since 1.2.0

Etiqueta <link> de HeadInput. Se deduplica por key o, si falta, por rel y href; rel: "canonical" y rel: "icon" son únicos aunque cambie href.

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

Source code src/shared/head.ts:50

Declaración #

ts
interface HeadLink {
	rel: string
	href: string
	hreflang?: string
	type?: string
	media?: string
	sizes?: string
	as?: string
	crossorigin?: '' | 'anonymous' | 'use-credentials'
	key?: string
}

Example #

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

const canonical: HeadLink = { rel: "canonical", href: "https://example.com/docs" };

Propiedades #

rel #

propiedad

rel: string

Atributo rel.

href #

propiedad

href: string

Atributo href.

hreflang #

propiedad opcional

hreflang?: string

Atributo hreflang.

type #

propiedad opcional

type?: string

Atributo type.

media #

propiedad opcional

media?: string

Atributo media.

sizes #

propiedad opcional

sizes?: string

Atributo sizes.

as #

propiedad opcional

as?: string

Atributo as de un preload.

crossorigin #

propiedad opcional

crossorigin?: '' | 'anonymous' | 'use-credentials'

Atributo crossorigin.

key #

propiedad opcional

key?: string

Clave de deduplicación explícita; no se escribe en el HTML.

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/head.ts