How to hide a label for Autocomplete on onFocus in Material-ui?

Viewed 6145

I am new to Material-ui. I am trying to customise Autocomplete component from @material-ui/labs. I wanted to hide a label of field. Can somebody help me customise the same? I tried adding hiddenLabel="true" flag to Autocomplete element, but it's not working. Below is a sandbox link. https://codesandbox.io/s/material-demo-jwmp2

2 Answers

if you want to hide the label on onSelect than you can use placeholder instead label in TextField or remove the label for blank value.

Here is the code sandbox link for the same https://codesandbox.io/s/material-demo-6kphs

Related