npx @sanity/plugin-kit@latest inject --preset-only --preset ui
npx @sanity/plugin-kit@latest init --preset ui <new-plugin-name>
Sets up your package with @sanity/ui
to build plugin UIs.
- Adds
@sanity/ui
dependency. - Add required dev and peer dependencies.
- Run
npm i
to install dependencies. - Refer to @sanity/ui README for more.