Blog

Styling Portable Text Output With Tailwind CSS
To style Portable Text with Tailwind CSS, you have two options. The quickest is to wrap the <PortableText /> component from `@portabletext/reac
Dive Deeper
Embedding YouTube Videos in Sanity Portable Text
To embed YouTube videos in Sanity Portable Text, create a youtube object type with a url field, add it to the of array of your Portable Tex
Dive Deeper
How to Render Portable Text in React
To render Portable Text in React, install @portabletext/react, fetch the Portable Text field from Sanity, and pass it to the PortableText com
Dive Deeper
Working With Arrays in Sanity Schemas
An array field in Sanity is a field with type: 'array' and an of property listing the types its items can be. Arrays can hold primitives such
Dive Deeper
How to Use Sanity With Astro
To use Sanity with Astro, install the official integration with npx astro add @sanity/astro, configure it in astro.config.mjs with your `proj
Dive Deeper
Backing Up and Restoring Your Sanity Data
To back up your Sanity data, export each dataset with npx sanity datasets export production production.tar.gz, which downloads every document a
Dive Deeper