Portable Text Mock Content
If you're looking to mockup portable text in Storybook without a Sanity backend, this is the schema you're looking for
Go to Portable Text Mock ContentBrowse ready-made Sanity.io schemas to structure your content quickly. Find useful code snippets for workflows, input components, migration scripts, and studio configurations.
If you're looking to mockup portable text in Storybook without a Sanity backend, this is the schema you're looking for
Go to Portable Text Mock ContentA dynamic group filled with fields that don't have any defined group.
Go to Create a dynamic 'Unmapped fields' group in your document definitionOnly return a value when a condition is fulfilled
Go to Conditional values in GROQ queriesIf you want to make it possible to use parameterised initialValue templates in reference fields, this is how!
Go to Create a new reference document with parameterised initial ValuesLess is more - We're breaking down some of the core helpers we use when building our websites
Go to GROQ Readability Helper ๐คSearch documents that are tagged with at least one of these tag slugs
Go to Filter Content by Multiple TagsGet all content that references the current document
Go to Backlinks QueryThis is a simple starting off point to allow users to organize a page
Go to Page Builder StarterSometimes you need to change only one key-value-pair in your data, this is how you can do it in 2 lines
Go to Create a copy of an object and change a key-value pairOkay, well it might be at least in the top 3. Using getDimensions and optimising the hell out of your images, check out this snippet
Go to The best Next.js & Sanity <Image/> ComponentIf you want to pass a parameter to a query that might not always be defined
Go to Handle Certain Values To Be TrueThis bash script can be used to delete documents using sanity cli.
Go to Delete documents using sanity cliHow to validate nested fields from the document or object level
Go to Validation of children in objectsGet parents parent in reference filter
Go to Get parents parent in reference filterA script to validate that your schema is free of errors and warnings
Go to Validate schema scriptA little 'hack' when you work on custom Document actions
Go to 'Hacking' custom Document Actions ๐