Sanity Library Reference Docs
    Preparing search index...

    Interface PresentationPluginOptions

    Configuration options for the Presentation tool.

    interface PresentationPluginOptions {
        allowOrigins?: PreviewUrlAllowOption;
        components?: {
            unstable_header?: HeaderOptions;
            unstable_navigator?: NavigatorOptions;
        };
        devMode?: boolean
        | (() => boolean);
        icon?: ComponentType;
        locate?: DocumentLocationResolver;
        name?: string;
        previewUrl: any;
        resolve?: {
            locations?: DocumentLocationResolver | DocumentLocationResolvers;
            mainDocuments?: DocumentResolver[];
        };
        title?: string;
        unstable_showUnsafeShareUrl?: boolean;
    }
    Index

    Properties

    allowOrigins?: PreviewUrlAllowOption
    components?: {
        unstable_header?: HeaderOptions;
        unstable_navigator?: NavigatorOptions;
    }
    devMode?: boolean | (() => boolean)
    icon?: ComponentType

    use resolve.locations instead

    name?: string
    previewUrl: any
    resolve?: {
        locations?: DocumentLocationResolver | DocumentLocationResolvers;
        mainDocuments?: DocumentResolver[];
    }
    title?: string
    unstable_showUnsafeShareUrl?: boolean

    this feature flag is no longer needed