Cursor Prompt
Thinking about getting started with AI? Well we're just going to share our latest and greatest prompt so you don't have to do the hard work
Go to Cursor PromptThinking about getting started with AI? Well we're just going to share our latest and greatest prompt so you don't have to do the hard work
Go to Cursor PromptUse modules to build your pages? Want to grab a link to a specific module? This schema is just for you!
Go to Adding Jump Links to Page ModulesContent estimated reading time component in TypeScript.
Go to Estimated reading timeLearn how to build a custom image gallery preview component that can be added to Portable Text.
Go to Custom Image Gallery Preview Component - Portable TextIf you're working on integrating portable text with custom markDefs using groqd, the following code snippet could be very useful. It might save you a considerable amount of research time.
Go to groqd implementation with portable text custom marksInsert related components next to a native one
Go to Helper function to add custom components above or below a native one.Wanna use Sanity to build a PageBuilder? Show previews of your blocks/sections!
Go to Custom PageBuilder Input Component - Preview Blocks & SectionsOn the fly form generation with Sanity & Formspark
Go to Sanity & Formspark Form GeneratorIf 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 definitionIf 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 QueryOkay, 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/> ComponentA little 'hack' when you work on custom Document actions
Go to 'Hacking' custom Document Actions 😇A custom validation to check if your Microcopy documents have unique keys and values for a specific namespace.
Go to Is your Microcopy unique?This validation can be used if you have two fields and you require one or the other to be filled
Go to One or the other validation