we should use type input to convert show and hide password by click on eye icon.
<input
id="password"
name="password"
type={showPassword ? "text" : "password"}
autoComplete="new-password"
placeholder="رمز عبور"
className={inputClass}
/>