From f945d0936e568822e2e1b9a9bcdf02565a70c081 Mon Sep 17 00:00:00 2001 From: Ven Korolev Date: Mon, 25 Oct 2021 11:01:02 +0200 Subject: [PATCH] update README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9a7fc1f..caa1f57 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ import Autocomplete from "react-google-autocomplete"; - `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. +- `libraries`: prop is used for loading additional google libraries alongside the places api, `defaultValue={["places"]}`. + 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. ## usePlacesWidget @@ -178,6 +180,7 @@ The hook has only one config argument. - `options`: Default [options](https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#QueryAutocompletionRequest) which will be passed to every request. - `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. - `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) + - `libraries`: prop is used for loading additional google libraries alongside the places api, `defaultValue={["places"]}`. ### Returned value