Files
2024-02-23 10:20:59 +01:00

22 lines
661 B
Plaintext

<div class="input-group">
@if (!string.IsNullOrEmpty(ItemLabel))
{
<span class="input-group-text">@ItemLabel</span>
}
else
{
<span class="input-group-text"><i class="fas fa-key"></i></span>
}
<input value="@Password" class="form-control" @oninput="OnPasswordChanged" type="@(showPassword ? "text" : "password")" />
<button @onclick="toggleShow" class="btn btn-sm btn-outline-secondary" disabled="@DisableShow">
@if (showPassword)
{
<i class="fa-regular fa-eye"></i>
}
else
{
<i class="fa-regular fa-eye-slash"></i>
}
</button>
</div>