Sanity Library Reference Docs
    Preparing search index...

    Interface StructureToolOptions

    The params for the structureTool api. See structureTool

    interface StructureToolOptions {
        defaultDocumentNode?: DefaultDocumentNodeResolver;
        structure?: StructureResolver;
        title?: string;
    }
    Index

    Properties

    defaultDocumentNode?: DefaultDocumentNodeResolver

    A resolver function used to return the default document node used when editing documents. See DefaultDocumentNodeResolver

    structure?: StructureResolver

    A structure resolver function. See StructureResolver

    title?: string

    The title that will be displayed for the tool. Defaults to Structure