TextField
Text field
Output: Show code
@using System.ComponentModel.DataAnnotations
<VStack>
<TextField @bind-Value="textFieldValue" />
Output: @textFieldValue
</VStack>
@code {
[Display(Name = "Text field")]
private string textFieldValue = string.Empty;
}
value
Show code
@using System.ComponentModel.DataAnnotations
<VStack>
<TextField @bind-Value="value" FieldSize="FieldSize.Compact" />
</VStack>
@code {
private string value = string.Empty;
}