Sanity Library Reference Docs
    Preparing search index...
    interface VisualEditingProps {
        components?: OverlayComponentResolver<
            OverlayComponent<Record<string, unknown>, any>,
        >;
        history?: undefined;
        plugins?: OverlayPluginDefinition[];
        refresh?: (
            payload: HistoryRefresh,
            refreshDefault: () => false | Promise<void>,
        ) => false | Promise<void>;
        zIndex?: string | number;
    }

    Hierarchy

    Index

    Properties

    components?: OverlayComponentResolver<
        OverlayComponent<Record<string, unknown>, any>,
    >

    This API is unstable and could change at any time.

    history?: undefined

    The history adapter is already implemented

    This API is unstable and could change at any time.

    refresh?: (
        payload: HistoryRefresh,
        refreshDefault: () => false | Promise<void>,
    ) => false | Promise<void>

    The refresh API allows smarter refresh logic than the default location.reload() behavior. You can call the refreshDefault argument to trigger the default refresh behavior so you don't have to reimplement it.

    zIndex?: string | number

    The CSS z-index on the root node that renders overlays, tweak it accordingly to what layout you have.