Skip to content

UseSeoMetaOptions

katanakit-js / UseSeoMetaOptions

type UseSeoMetaOptions<OmitKeys> = Omit<UseSeoMetaBase, OmitKeys>;

Defined in: config/seo-meta.types.ts:177

Public options for useSeoMeta. HTML, Open Graph, Twitter/X card and site fields in one object. Omit keys you do not want in the type.

Type Parameter Default type
OmitKeys extends keyof UseSeoMetaBase never
// site = URL, siteTitle = brand, title = this page
useSeoMeta({
site: "https://katanakit.dev",
siteTitle: "KatanaKit",
title: "Getting started", // → <title>Getting started | KatanaKit</title>
description: "…",
ogImage: "/og.png",
} satisfies UseSeoMetaOptions);
useSeoMeta({ title: "Home" } as UseSeoMetaOptions<"rss" | "nav">);