Sanity Library Reference Docs
    Preparing search index...

    Interface InsertMenuOptionsAlpha

    This API may change

    interface InsertMenuOptions {
        filter?: boolean | "auto";
        groups?: { name: string; of?: string[]; title?: string }[];
        showIcons?: boolean;
        views?: (
            | { name: "list" }
            | { name: "grid"; previewImageUrl?: (schemaTypeName: string) => string }
        )[];
    }
    Index

    Properties

    filter?: boolean | "auto"

    'auto' filter: 'auto' automatically turns on filtering if there are more than 5 schema types added to the menu.

    groups?: { name: string; of?: string[]; title?: string }[]
    showIcons?: boolean

    defaultValue true

    views?: (
        | { name: "list" }
        | { name: "grid"; previewImageUrl?: (schemaTypeName: string) => string }
    )[]

    [{name: 'list'}]