SeoMetaInput
interfaz Desde 1.2.0
Atajo tipado de useSeoMeta: cada campo produce la etiqueta correcta (name o property).
Los campos undefined o null no producen nada.
ts
import type { SeoMetaInput } from "@meekojs/meeko/framework";Código fuente src/shared/head.ts:370
Declaración #
ts
interface SeoMetaInput {
title?: string | null | undefined
description?: string | null | undefined
ogTitle?: string | null | undefined
ogDescription?: string | null | undefined
ogImage?: string | null | undefined
ogImageAlt?: string | null | undefined
ogImageWidth?: string | number | null | undefined
ogImageHeight?: string | number | null | undefined
ogUrl?: string | null | undefined
ogType?: string | null | undefined
ogSiteName?: string | null | undefined
ogLocale?: string | null | undefined
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player' | null | undefined
twitterSite?: string | null | undefined
twitterCreator?: string | null | undefined
twitterTitle?: string | null | undefined
twitterDescription?: string | null | undefined
twitterImage?: string | null | undefined
twitterImageAlt?: string | null | undefined
robots?: string | null | undefined
author?: string | null | undefined
keywords?: string | null | undefined
themeColor?: string | null | undefined
colorScheme?: string | null | undefined
applicationName?: string | null | undefined
referrer?: string | null | undefined
canonical?: string | null | undefined
}Ejemplo #
ts
import type { SeoMetaInput } from "@meekojs/meeko/framework";
const seo: SeoMetaInput = {
title: "Precios",
description: "Planes y precios",
ogImage: "https://example.com/og/pricing.png",
twitterCard: "summary_large_image",
canonical: "https://example.com/pricing",
};Propiedades #
ogImageHeight
#
ogImageHeight?: string | number | null | undefined<meta property="og:image:height">.
twitterCard
#
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player' | null | undefined<meta name="twitter:card">.
twitterDescription
#
twitterDescription?: string | null | undefined<meta name="twitter:description">.