@sanity/studio-hints

2.35.3 • Public • Published

⚠️ THIS PACKAGE IS DEPRECATED

This package is part of Sanity Studio v2, which has been superseded by Sanity Studio v3, the current major version released on Dec 7th, 2022. This package is no longer used/needed for Sanity Studio in its current version and will be retired on Dec 7th, 2023. The core packages for Sanity Studio v2 will only receive critical bug fixes until this date.

Please head over to the documentation for Sanity Studio v3 to learn more.

Studio hints

Helpful stuff appears! In the sidecar!

This plugin is an implementation of part:@sanity/default-layout/sidecar. As such, it exports the three things it is required to:

  • SidecarToggleButton React component: The button which will appear in the Navbar to toggle on/off the Sidecar
  • SidecarLayout React component: The content of the Sidecar (once it appears)
  • isSidecarEnabled Function. Call this to check if the Sidecar implementation is happy and good to go (typically, the sidecar impl. wants to verify if config is present)

Want Studio hints to appear in a running Studio?

1. Install the studio-hints plugin

sanity install @sanity/studio-hints

2. Implement part:@sanity/default-layout/studio-hints-config

Add this to the parts array in the sanity.json file:

{
  "implements": "part:@sanity/default-layout/studio-hints-config",
  "path": "studioHintsConfig.js"
}

Create the file:

touch studioHintsConfig.js

Edit that file to specify which hints package the studio-hints plugin will use:

export default {
  templateRepoId: 'sanity-io/sanity-template-gatsby-blog',
}

Package Sidebar

Install

npm i @sanity/studio-hints

Weekly Downloads

2,960

Version

2.35.3

License

MIT

Unpacked Size

32.1 kB

Total Files

19

Last publish

Collaborators

  • tambet
  • jtpetty
  • drewsanity
  • refiito
  • sergeisarviro
  • ash
  • indrek.karner
  • cngonzalez-sanity
  • rdunk
  • rneatherway-sanity
  • ricokahler
  • pedro-sanity
  • jonabc
  • kenjonespizza
  • pauloborgesf
  • binoy14
  • simen.svale
  • svirs
  • josh_sanity_io
  • joneidejohnsen
  • nina.andal
  • rankers
  • snorreeb
  • mattcraig
  • vincentquigley
  • stipsan
  • michael-sanity
  • rubioz
  • tonina
  • ritasdias
  • simeonsanity
  • kmelve
  • bjoerge
  • rexxars
  • skogsmaskin
  • robinpyon
  • mariuslundgard
  • sanity-io
  • evenw
  • radhe_sanity
  • rbotten
  • judofyr
  • obliadp
  • dcilke
  • fredcarlsen
  • hermanw
  • sgulseth
  • atombender