How auto fit e AutoComplete field in MUI?
04:28 28 Sep 2020

I want to implement an AutoComplete field using Material UI, where the size of the field resizes according to the option selected.

enter image description here

When the option selected does not occupy the entire field, I would like the size of the field to reduce. And if the option selected is longer than what the field can accommodate, I would like the field size to increase to display the entire option

enter image description here

How can this be implemented in Material UI?

reactjs autocomplete material-ui