@page "/forminputoverview" @inject CountryService countryService; @rendermode RenderMode.InteractiveServer Basic Fluent UI Form This is an example of the Fluent UI. The FluentValidationSummary and FluentValidationMessage give feedback on the state of the form. Is uses Starship model form Standard Documentation. Starfleet Starship Database

This form uses the Fluent UI input components. It uses a DataAnnotationsValidator, a FluentValidationSummary and FluentValidationMessages.;

New Ship Entry Form
Select classification... Exploration Commerce Diplomacy Defense
Submit
@code { [SupplyParameterFromForm] Starship starship { get; set; } = new Starship(); string message = ""; protected override void OnInitialized() { starship.ProductionDate = DateTime.Now; } private async Task OnSearchCountryAsync(OptionsSearchEventArgs e) { var allCountry = await countryService.GetAllCountriesAsync(); e.Items = allCountry.Where(c => c.Name.StartsWith(e.Text, StringComparison.OrdinalIgnoreCase)) .OrderBy(c => c.Name); } private void HandleValidSubmit() { message = $"Message: HandleValidSubmit called."; } private void OnSubmit(Starship e) { } }