Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

267
Views
InputLabel of Material UI not aligning properly

The material UI InputLabel is not aligning as intended

I wanted to add the password field for authentication while Signing up but the label of the password field is not aligned properly as shown in the image

<div className="register">
      <h2>
        <OfflineBoltRoundedIcon
          sx={{ fontSize: '3.5rem', position: 'relative', top: '1rem' }}
        />
        Electrify
      </h2>
      <h1>Sign up with your email address</h1>
      <FormControl sx={{ m: 1, width: '20rem' }} variant="outlined">
        <p>What's your email?</p>
        <TextField
          id="email"
          label="Email"
          variant="outlined"
          color="secondary"
          name="email"
          fullWidth
        />
        <p>Create a password</p>
        <InputLabel htmlFor="outlined-adornment-password" color="secondary">
          Password
        </InputLabel>
        <OutlinedInput
          id="outlined-adornment-password"
          type={values.showPassword ? 'text' : 'password'}
          value={values.password}
          onChange={handleChange('password')}
          endAdornment={
            <InputAdornment position="end">
              <IconButton
                aria-label="toggle password visibility"
                onClick={handleClickShowPassword}
                onMouseDown={handleMouseDownPassword}
                edge="end"
              >
                {values.showPassword ? <VisibilityOff /> : <Visibility />}
              </IconButton>
            </InputAdornment>
          }
          label="Password"
          color="secondary"
          aria-describedby="outlined-password-helper-text"
        />

        <FormHelperText id="outlined-password-helper-text">
          Enter a 6 digit password
        </FormHelperText>
      </FormControl>
    </div>

The password label is not aligned properly

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!