The official Preview toolkit for Sanity

Official(made by Sanity team)

By Cody Olsen

Toolkit for building live-as-you-type content preview experiences and visual editing.

Install command

npm i @sanity/preview-kit @sanity/client

Contributor

Cody Olsen

Creative JavaScript Developer & UI designer, passionate about UX & A11Y πŸ’–

Cody is located at Oslo
Visit Cody Olsen's profile

Related contribution

The official Sanity toolkit for Next.js
- Tool

Official(made by Sanity team)

Toolkit for integrating content from Sanity, including previews, Studio embedding, webhook verification, and more

Go to The official Sanity toolkit for Next.js

Official Recipes by Sanity

First Published Timestamp Function
- Recipe

Official(made by Sanity team)

Automatically track when content was first published with a timestamp that sets once and never overwrites, providing reliable publication history for analytics and editorial workflows.

Knut Melvær
Go to First Published Timestamp Function

Auto-Tag Function
- Recipe

Official(made by Sanity team)

AI-powered automatic tagging for Sanity blog posts that analyzes content to generate 3 relevant tags, maintaining consistency by reusing existing tags from your content library.

Go to Auto-Tag Function

Slack Notify Function
- Recipe

Official(made by Sanity team)

On document publish, send a Slack notification so your team is informed

Ken Jones Pizza
Go to Slack Notify Function

Auto Summary Function
- Recipe

Official(made by Sanity team)

AI-Powered Content Summary from Long Form Content

Kevin Green
Go to Auto Summary Function