Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

sanity-io/plugin-template-tool-with-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-template-tool-with-routing

Plugin template for a tool that includes basic routing.

Main take-aways

  • Tools implement the part named part:@sanity/base/tool
  • The file that implements the tool part needs to export an object containing properties such as a name, title, icon and React component to render. See template/index.js.
  • Sanity has a router that can be used to map certain paths to certain actions. See the router documentation for more info.
  • A preconfigured Sanity client can be imported from the part part:@sanity/base/client. The configuration from the studios sanity.json is used.

Usage

sanity init plugin https://github.com/sanity-io/plugin-template-tool-with-routing/archive/master.zip

License

MIT-licensed. See LICENSE.

About

Plugin template for a tool that includes basic routing

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •