The WrapperProps interface extends the LoaderOptions interface from @googlemaps/js-api-loader. See the reference documentation for LoaderOptions for a complete list of all props that are available.

interface WrapperProps {
    callback?: ((status: Status, loader: Loader) => void);
    children?: ReactNode;
    render?: ((status: Status) => ReactElement<any, string | JSXElementConstructor<any>>);
}

Hierarchy

  • LoaderOptions
    • WrapperProps

Properties

callback?: ((status: Status, loader: Loader) => void)

Callback prop used to access @googlemaps/js-api-loader and Status.

Note: The callback be executed multiple times in the lifecycle of the component.

children?: ReactNode

Children wrapped by the <Wrapper>{elements}</Wrapper.

render?: ((status: Status) => ReactElement<any, string | JSXElementConstructor<any>>)

Render prop used to switch on the status.