I want to implement an AutoComplete field using Material UI, where the size of the field resizes according to the option selected.
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
How can this be implemented in Material UI?

