Schemas and snippets

Group documents by year
- Schema

How to group documents by their publishedAt year using the Structure Builder API

Rune Botten
Go to Group documents by year

Custom default desk pane
- Schema

An example of overriding the default Studio Desk pane to add some business logic around menu items.

Rune Botten
Go to Custom default desk pane

Podcast
- Schema

Schemas for running a podcast backend on Sanity.io

Knut Melvær
Go to Podcast

Horizontal bar chart
- Schema

This is a schema we've used to create accessbile bar charts, with human-readable text for each bar.

Jayne Mast
Go to Horizontal bar chart

Portable Text Validator
- Schema

Generate a custom validator function for Portable Text fields using built-in routines

Corey Ward
Go to Portable Text Validator

Share your own contribution

Get listed in Sanity.io, increase your work's visibility and help others.

Share your own contribution
Choose a starter
OR install Sanity with:
λ npm install -g @sanity/cli
λ sanity init