Schemas and snippets

Browse ready-made Sanity.io schemas to structure your content quickly. Find useful code snippets for workflows, input components, migration scripts, and studio configurations.

Select draft OR published document

Setting up a live preview and want to fetch a document's draft, with a fallback for the published document when there are no drafts? Check this out.

Formidable
Go to Select draft OR published document

One or the other validation

This validation can be used if you have two fields and you require one or the other to be filled

Roboto Studio
Go to One or the other validation

Website Meta Document

Manage Meta tags, openGraph, and locale Data for your site within Sanity Studio

Andre Clark
Go to Website Meta Document