How to use the @sanity/desk-tool/structure-builder.component function in @sanity/desk-tool

To help you get started, we’ve selected a few @sanity/desk-tool examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sanity-io / sanity / packages / test-studio / src / deskStructure.js View on Github external
S.listItem()
        .title('Singleton?')
        .child(
          delay(
            S.editor({id: 'editor', options: {id: 'circular', type: 'referenceTest'}}).title(
              'Specific title!'
            )
          )
        )
        .showIcon(false),

      S.documentListItem()
        .id('grrm')
        .schemaType('author')
        .child(
          S.component(JsonDocumentDump)
            .id('json-dump')
            .options({pass: 'through'})
            .menuItems([
              S.menuItem()
                .title('Reload')
                .action('reload')
                .icon(RefreshIcon)
                .showAsAction(true)
            ])
        ),
      S.listItem()
        .title('Deep')
        .child(
          S.list()
            .title('Deeper')
            .items([