Skip to content

Desk structure in sanity studio v3 #3932

Discussion options

You must be logged in to vote

The structure resolver is a callback function that takes the StructureBuilder as its argument.

The following example is the base document type list:

import { defineConfig } from 'sanity';

defineConfig({
    name: 'sanity',
    title: 'Sanity Example',

    projectId: 'foo',
    dataset: 'production',

    plugins: [
        deskTool({
            structure: S => S.documentTypeListItems(),

            name: 'desk',
            title: 'Desk'
        })
    ]
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OtterArkar
Comment options

Answer selected by OtterArkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants