Wrap your UI workshop in the Sanity context to test your Sanity-connected components.
npm install @sanity/ui-workshop-plugin-sanityWrap your UI workshop in the Sanity context to test your Sanity-connected components.
``sh@sanity/ui-workshop-plugin-sanityInstall
as dev dependency
npm install @sanity/ui-workshop-plugin-sanity -D

Basic usage
Add the plugin to your
workshop.config.ts (or .js) in the root of your project:`ts
import {defineConfig} from '@sanity/ui-workshop'
import {sanity} from '@sanity/ui-workshop-plugin-sanity'
import sanityConfig from './sanity.config'export default defineConfig({
title: 'My UI Workshop',
plugins: [sanity({config: sanityConfig})],
})
``