Skip to content

Blazor substitute for the input tag helper #49132

@danroth27

Description

@danroth27

MVC & Razor pages offer an input tag helper that can be used to bind an input element to a model expression. The tag helper does a number of things, one of which is pick the input type based on the type of the model expression. This is useful for scaffolding based on a data model.

<div class="form-group">
    <label asp-for="Movie.Title" class="control-label"></label>
    <input asp-for="Movie.Title" class="form-control" />
    <span asp-validation-for="Movie.Title" class="text-danger"></span>
</div>

This issue proposes to have a substitute for the input tag helper that can be used when authoring forms with Blazor, like an InputFor component or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions