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, loader) => void);
    children?: ReactNode;
    render?: ((status) => ReactElement<any, string | JSXElementConstructor<any>>);
}

Hierarchy

  • LoaderOptions
    • WrapperProps

Properties

callback?: ((status, 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.

Type declaration

    • (status, loader): void
    • Parameters

      Returns void

children?: ReactNode

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

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

Render prop used to switch on the status.

Type declaration

    • (status): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      Returns ReactElement<any, string | JSXElementConstructor<any>>

Generated using TypeDoc