The properties for the React wrapper.

interface ReactMarvinProps {
    onError?: (reason: string) => void;
    onReady?: (ui: Marvin) => void;
    settings: MarvinSettings;
}

Properties

onError?: (reason: string) => void

This callback is invoked when an error occurs while initializing the wrapped Marvin instance.

onReady?: (ui: Marvin) => void

This callback is called when the wrapped Marvin instance is ready, and gives a chance to get a hold of the Marvin, which contains all of the api functionalities.

settings: MarvinSettings

Configuration options for Marvin.