Sanity Library Reference Docs
    Preparing search index...

    Function useDocumentVersionTitle

    • Returns the version info title, full title, and whether the title is truncated for a given version. It maps the version status to a release and a variant. So for example:

      • Published default: "All users (Default) · Published"
      • Published variant: "Variant name · Published"
      • Draft variant: "Variant name · Draft"
      • Release default: "All users (Default) · Release name"
      • Release variant: "Variant name · Release name"

      Parameters

      • __namedParameters: { version: VersionInfoDocumentStub }

      Returns { fullTitle: string; isTruncated: boolean; title: string }