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.

HeadStyle

interfaz Since 1.2.0

Etiqueta <style> de HeadInput. Se deduplica por key o por su contenido. Meeko añade el nonce CSP de la petición.

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

Source code src/shared/head.ts:113

Declaración #

ts
interface HeadStyle {
	children: string
	media?: string
	key?: string
}

Example #

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

const print: HeadStyle = { children: "nav { display: none }", media: "print" };

Propiedades #

children #

propiedad

children: string

CSS de la etiqueta.

media #

propiedad opcional

media?: string

Atributo media.

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