UseSeoMetaOptions
katanakit-js / UseSeoMetaOptions
Type Alias: UseSeoMetaOptions<OmitKeys>
Section titled “Type Alias: UseSeoMetaOptions<OmitKeys>”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 Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
OmitKeys extends keyof UseSeoMetaBase |
never |
Example
Section titled “Example”// site = URL, siteTitle = brand, title = this pageuseSeoMeta({ 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">);