dotnet / dotnet/aspnetcore

Provide a new form component to simplify form authoring

Open
#49,653 5 comments 0 reactions 0 assignees View on GitHub
area-blazor enhancement feature-blazor-component-model Pillar: Complete Blazor Web
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

When I tried to implement a logout form, this is what I ended up with:

```razor

Logout

```

It didn't make sense to use `EditForm` for this form because `EditForm` requires a model or an edit context, which I don't really need.

A couple of observations:
- I had to explicitly specify a form name, which is now required for all forms
- I had to manually add antiforgery support

In Razor Pages the form tag helper handles these concerns for you:

```

Logout

```

Should we provide a new framework component that makes authoring these sorts of forms easier?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.