wheredoesyourmindgo / react-mui-mapbox-geocoder

A Material UI Autosuggest'ing Mapbox Geocoder for locating addresses and points of interest.
MIT License
10 stars 4 forks source link

feat: can now use a TextField instead of an InputBase #55

Closed clementlize closed 2 years ago

clementlize commented 2 years ago

Hi there, I wrote a new feature because I needed the MUI v4 search field design back. The idea is to let the user chose whether they want to use an <InputBase /> or a <TextField />.

The changes I made do not break the component, apart from the removal of the disableUnderline property (which was not used anywhere in the code). Indeed, by default the <InputBase /> is used, and does not have any border or underline.

For my use case (in my project), I just have to rename inputProps into textFieldProps, and add "variant: standard" to get the MUI v4 design back.

I hope you'll be able to merge this, do not hesitate to get back to me if you have any questions. Thanks!

pcwa-ahendricks commented 2 years ago

Thanks for this commit

clementlize commented 2 years ago

You're welcome, and thank you for maintaining. Have a great day!