Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 586 Bytes

ui.md

File metadata and controls

23 lines (13 loc) · 586 Bytes

Preset: ui

Usage

Inject into existing package

npx @sanity/plugin-kit@latest inject --preset-only --preset ui

Use to init plugin

npx @sanity/plugin-kit@latest init --preset ui <new-plugin-name>

What does it do?

Sets up your package with @sanity/ui to build plugin UIs.

  • Adds @sanity/ui dependency.
  • Add required dev and peer dependencies.

Manual steps after inject

  • Run npm i to install dependencies.
  • Refer to @sanity/ui README for more.