UNPKG

@vis.gl/react-google-maps

Version:

React components and hooks for the Google Maps JavaScript API

16 lines (15 loc) 653 B
import React, { CSSProperties, PropsWithChildren, ReactNode } from 'react'; export type InfoWindowProps = Omit<google.maps.InfoWindowOptions, 'headerContent' | 'content' | 'pixelOffset'> & { style?: CSSProperties; className?: string; anchor?: google.maps.Marker | google.maps.marker.AdvancedMarkerElement | null; pixelOffset?: [number, number]; shouldFocus?: boolean; onClose?: () => void; onCloseClick?: () => void; headerContent?: ReactNode; }; /** * Component to render an Info Window with the Maps JavaScript API */ export declare const InfoWindow: (props: PropsWithChildren<InfoWindowProps>) => React.JSX.Element;