PasswordField
Since 0.1.0-alpha.22IzzyBlazor.PasswordField in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (14)
Revealbool = trueA button that shows or hides the text. Appears once scripts run. Defaults to true.
ShowPasswordLabelstring? = "Show password"The reveal button's name; it's a toggle, pressed while the password shows. Defaults to "Show password".
RequirementsPasswordRules?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 = falseA button in the field that empties it, there while it holds something. Off by default.
ReadOnlybool = falseMakes the field read-only: it can be focused and its text selected, and it still posts.
Placeholderstring?Example text shown when empty. Not a substitute for a label.
AutoCompletestring?The browser autofill hint, such as email, name, current-password.
MaxLengthint? (computed)Maximum length. Defaults to [StringLength] or [MaxLength].
MinLengthint? (computed)Minimum length. Defaults to [StringLength(MinimumLength)] or [MinLength].
StartIconIconData?An icon inside the field, before the text.
StartAddonRenderFragment?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?Content attached after the control, outside its border. See StartAddon.
@bind-Valuestring?The value, bound with @bind-Value.
DisplayNamestring?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
recordWhat 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.
| Member | Description |
|---|---|
RequiredLength int = 0 | The fewest characters, counted as |
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: |
RequiredUniqueChars int = 1 | The fewest different characters. 1 or less asks nothing. |
IsMetBy(string? password) | Whether |