Blazor provides building blocks for creating forms. It includes editor components, model validation, and model binding. When you want to create a form, you need to create an object to store the form data and create the razor component with labels and editors for each property. This is tedious when you want to quickly create a basic form.

To speed up this process, I’ve created a generic form component. This component automatically creates a form from an object. So, when you need a basic form, it works out of the box.

<Project Sdk="Microsoft.NET.Sdk.Web">
  ...
  <ItemGroup>
    <PackageReference Include="Meziantou.AspNetCore.Components" Version="1.0.2" />
  </ItemGroup>
  ...
</Project>

#blazor #.net #asp.net core

Automatically Generate A form From an Object in Blazor
6.95 GEEK