@inherits KhInputBase @* A text field (SPEC ยง10.7). Mono shows codes in the code font. *@ @code { /// The input type: text, email, tel, url, password. [Parameter] public string Type { get; set; } = "text"; /// The text shown while empty. [Parameter] public string? Placeholder { get; set; } /// The longest text. [Parameter] public int? MaxLength { get; set; } /// Shows the value in the code font. [Parameter] public bool Mono { get; set; } private Task OnChangeAsync(ChangeEventArgs e) => SetValueAsync(e.Value as string); }