Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

PasswordField

Since 0.1.0-alpha.22
Lets the user enter a password, show it, and see a new one's requirements.

IzzyBlazor.PasswordField in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (14)

Revealbool = trueAdded in 0.1.0-alpha.22

A button that shows or hides the text. Appears once scripts run. Defaults to true.

ShowPasswordLabelstring? = "Show password"Added in 0.1.0-alpha.22

The reveal button's name; it's a toggle, pressed while the password shows. Defaults to "Show password".

RequirementsPasswordRules?Added in 0.1.0-alpha.22

What a new password must have, listed under the field and checked off as it's typed; the form doesn't validate until the password meets them, on the server too. Sets AutoComplete to new-password unless it's set (without Requirements it's current-password), and tells Safari the rules for the passwords it suggests.

Clearablebool = falseAdded in 0.1.0-alpha.22

A button in the field that empties it, there while it holds something. Off by default.

ReadOnlybool = falseAdded in 0.1.0-alpha.22

Makes the field read-only: it can be focused and its text selected, and it still posts.

Placeholderstring?Added in 0.1.0-alpha.22

Example text shown when empty. Not a substitute for a label.

AutoCompletestring?Added in 0.1.0-alpha.22

The browser autofill hint, such as email, name, current-password.

MaxLengthint? (computed)Added in 0.1.0-alpha.22

Maximum length. Defaults to [StringLength] or [MaxLength].

MinLengthint? (computed)Added in 0.1.0-alpha.22

Minimum length. Defaults to [StringLength(MinimumLength)] or [MinLength].

StartIconIconData?Added in 0.1.0-alpha.22

An icon inside the field, before the text.

StartAddonRenderFragment?Added in 0.1.0-alpha.22

Content attached before the control, outside its border: short text (https://, $), a button, or another field such as a Select<T> (its label is kept for screen readers but not shown). Text here is not part of the field's accessible name, so say it in the label when it matters, as in "Price (USD)".

EndAddonRenderFragment?Added in 0.1.0-alpha.22

Content attached after the control, outside its border. See StartAddon.

@bind-Valuestring?Added in 0.1.0-alpha.22

The value, bound with @bind-Value.

DisplayNamestring?Added in 0.1.0-alpha.22

The field's name in validation messages from the input itself, such as a value that can't be parsed.

Events (0)

No events.

Types (1)

PasswordRules

record

What a new password must have, for Requirements: shown as a list under the field, checked off as it's typed, and checked on the server. The properties are named and checked as ASP.NET Core Identity's PasswordOptions, so an app passes its own rules across. The defaults differ: here every rule is off until set, where Identity's are on (a length of 6, a digit, both cases and a symbol), so copy each value, not only the ones you changed.

PasswordRules members
MemberDescription
RequiredLength int = 0

The fewest characters, counted as string.Length is (as Identity counts them); only spaces don't count.

RequireDigit bool = false

At least one digit, 0 to 9.

RequireLowercase bool = false

At least one lowercase letter, a to z.

RequireUppercase bool = false

At least one uppercase letter, A to Z.

RequireNonAlphanumeric bool = false

At least one character that isn't an ASCII letter or digit, as Identity counts it: !, a space, or é.

RequiredUniqueChars int = 1

The fewest different characters. 1 or less asks nothing.

IsMetBy(string? password)

Whether password meets every rule.

Connection lost

Rejoining the server…