Skip to Content
Read the release notes before upgrading production environments.
Content ModelingCustom Types

Import custom types from @cms0/cms0/custom-types.

Available custom types

  • File
  • Image
  • Video
  • RichText
  • LocalizedString
  • LocalizedRichText
  • Seo

Common usage

import { Image, LocalizedString, LocalizedRichText, Seo, } from "@cms0/cms0/custom-types"; type RootSchema = { HomePage: { title: LocalizedString; heroImage: Image; body: LocalizedRichText; seo?: Seo; }; };

Selection guide

  • Use Image and Video for media metadata and rendering constraints.
  • Use RichText when editors need formatted content.
  • Use localized types when content varies per locale.
  • Use Seo for metadata that maps cleanly to page-level SEO output.