katanakit-js / UseSeoMetaOptions
Type Alias: UseSeoMetaOptions<OmitKeys>
ts
type UseSeoMetaOptions<OmitKeys> = Omit<UseSeoMetaBase, OmitKeys>;Defined in: src/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 Parameters
| Type Parameter | Default type |
|---|---|
OmitKeys extends keyof UseSeoMetaBase | never |
Example
ts
// 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">);