Sanity Library Reference Docs
    Preparing search index...

    Construct a type with the properties of T except for those in type K.

    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 (View Summary)

    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.