N
N
nivaech2020-05-06 14:47:39
JavaScript
nivaech, 2020-05-06 14:47:39

Material-UI how to change label style on click on text field (JSS)?

There is a component with textfield.

const TextFieldd = () => {
  const classes = useStyles();
  return (
    <form className={classes.root} noValidate autoComplete="off">
      <TextField id="outlined-basic" label="Some Label" variant="outlined" />
    </form>
  );
};

when you click on it, the label from the input field goes to the side, and at this moment you need to change its style so that the label text becomes bold. How to register it in override?
MuiInputLabel: {
    root: {
      fontWeight: '300',
    },
  },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2020-05-06
@miraage

Customized Inputs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question