🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

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 remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?