-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
May I know how to add the password mask? I am using MudBlazor.
I have tried many ways but the password still rendered as text instead of password input type.
formConfiguration = FormBuilder<LoginFormModel>
.Create()
.AddEmailField(x => x.Email, label: "Email", placeholder: "Enter your email")
.AddField(x => x.Password, field =>
{
field
.WithLabel("Password")
.Required("Password is required")
.WithMinLength(8, $"Must be at least 8 characters")
.WithPlaceholder("Enter your password")
.WithInputType("password")
.WithAttribute("InputType", "password")
.WithAttribute("Mask", "*");
})
.Build();Besides, may I also know how to add a toggle icon inside the password textbox to show/hide the password?
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels