Skip to content

Commit f945d09

Browse files
committed
update README
1 parent f6fd407 commit f945d09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ import Autocomplete from "react-google-autocomplete";
8484

8585
- `language`: Set [language](https://developers.google.com/maps/documentation/places/web-service/details#PlaceDetailsRequests) to be used for the results. If not specified, Google defaults to load the most appropriate language based on the users location or browser setting.
8686

87+
- `libraries`: prop is used for loading additional google libraries alongside the places api, `defaultValue={["places"]}`.
88+
8789
You can pass any prop specified for the hmtl [input tag](https://www.w3schools.com/tags/tag_input.asp). You can also set [options.fields](https://developers.google.com/maps/documentation/javascript/reference/places-service#PlaceResult) prop if you need extra information, now it defaults to basic data in order to control expenses.
8890

8991
## usePlacesWidget
@@ -178,6 +180,7 @@ The hook has only one config argument.
178180
- `options`: Default [options](https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#QueryAutocompletionRequest) which will be passed to every request.
179181
- `sessionToken`: If true then a [session token](https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#AutocompleteSessionToken) will be attached to every request.
180182
- `language`: If the language code is set, the results will be returned in the specificed [language](https://developers.google.com/maps/documentation/places/web-service/details#PlaceDetailsRequests)
183+
- `libraries`: prop is used for loading additional google libraries alongside the places api, `defaultValue={["places"]}`.
181184

182185
### Returned value
183186

0 commit comments

Comments
 (0)