Can anyone tell me how to make text field with label in material-ui lib
looking for something like this :
https://github.com/callemall/material-ui/blob/master/src/TextField/TextFieldLabel.jsx
but cant find it in the npm package
You can achieve a fixed label by passing in shrink as a inputLabelProp
    <TextField
         id="standard-number"
         label="Number"
         type="number"
         InputLabelProps={{
           shrink: true,
         }}
       />
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With