visgl / react-google-maps

React components and hooks for the Google Maps JavaScript API
https://visgl.github.io/react-google-maps/
MIT License
1.2k stars 96 forks source link

Discrepancy in InfoWindow component documentation and implementation #426

Closed md-moijul closed 3 months ago

md-moijul commented 3 months ago

Description

The documentation for the InfoWindow component mentions a headerContent prop, which is supposed to accept a string or React.ReactNode. However, the actual implementation of the InfoWindow component does not include this prop. Below are the details of the implementation and the discrepancy in the documentation:

Documentation Reference: React Google Maps - InfoWindow API

Expected Behavior: The InfoWindow component should support a headerContent prop as described in the documentation, allowing users to pass either a string or React.ReactNode to be displayed in the header row of the InfoWindow.

Actual Behavior: The current implementation of the InfoWindow component does not include the headerContent prop, leading to a mismatch between the documentation and the actual code.

Steps to Reproduce

Attempt to use the headerContent prop with the InfoWindow component as per the documentation. Observe that the headerContent prop is not recognized by the InfoWindow component.

Environment

Logs

No response

md-moijul commented 3 months ago

sorry my bad. it's available on the beta v1.1.0