TextField
IzzyBlazor.TextField in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly
and its doc comments.
Properties (14)
ReadOnlybool = falseMakes the field read-only: it can be focused and its text selected, and it still posts.
TypeTextFieldType?The kind of text. Defaults from the model: [EmailAddress], [Phone], [Url], [DataType(DataType.Password)]; otherwise text.
Placeholderstring?Example text shown when empty. Not a substitute for a label.
AutoCompletestring?The browser autofill hint, such as email, name, new-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.
Revealbool = trueFor passwords: a 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".
@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)
TextFieldType
enumThe kind of text a TextField takes. Sets the input type and the mobile keyboard.
| Value | Description |
|---|---|
Text | Plain text. |
Email | An email address. |
Password | A password, masked, with a show/hide toggle. |
Search | A search query. |
Tel | A phone number. |
Url | A URL. |