...

/

Overview of the EditForm Component

Overview of the EditForm Component

Learn the basics of the EditForm component and validate methods for form submission.

We'll cover the following...

So far, we have used the standard HTML form element to collect user input. However, the Blazor WebAssembly framework provides an enhanced version of the standard HTML form element called the EditForm component.

The EditForm component not only manages forms, but it also coordinates both validation and submission events. The following code shows an empty EditForm element:

Press + to interact
<EditForm Model="expense" OnValidSubmit="HandleValidSubmit"></EditForm>
...