ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
473 stars 114 forks source link

How to style Autocomplete box? #159

Closed LefanTan closed 2 years ago

LefanTan commented 2 years ago

Aside from getting the autocomplete box element using document.getElementByClassname, is there a better to style the box ('pac-container') as well as ('pac-item') ? It would be great if it is possible to get the element itself through autocompleteRef

image

ErrorPro commented 2 years ago

It's styled by google and you cannot change styles(at least easily), use places service and style the items yourself