How to add a title to deskStructure in Sanity.io using preview.

2 replies
Last updated: Jul 28, 2023
I forgot how to change this… anyone that can help refresh my memory??
Jul 28, 2023, 8:42 AM
Something like this using preview should work I think:
  preview: {
    prepare: () => {
      return {
        title: "Your title here",
      };
    },
  },
Jul 28, 2023, 10:19 AM
Hey thanks
user F
I solved adding a title to my deskStructure
.title("Payment Method")
Jul 28, 2023, 11:45 AM

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?