what is diffrent bewtten input , inputText in blazor webAssembly

hamed farjad 40 Reputation points
2023-02-21T05:35:13.7233333+00:00

@page "/"

<InputText @bind-Value=""></InputText>

<input @bind-value="" />

<InputNumber @bind-Value=""></InputNumber>

Developer technologies | .NET | Blazor
0 comments No comments
{count} votes

Accepted answer
  1. Fabricio Godoy 2,626 Reputation points
    2023-02-21T06:19:07.4266667+00:00

    Hello

    @hamed farjad

    In Blazor WebAssembly, Input and InputText are both components used to create input elements. However, Input is a generic component that can create various types of input elements using the type attribute, while InputText is a specialized component optimized for creating text input elements. InputText provides additional functionality such as debouncing, which is useful for reducing unnecessary updates and improving performance. Both components bind the value of the input element to a property using the @bind-Value directive.

    If you need more detalis, you can get her:

    Blazor documentation on Input component:

    https://docs.microsoft.com/en-us/aspnet/core/blazor/components?view=aspnetcore-6.0#input-components

    Blazor documentation on InputText component:

    https://docs.microsoft.com/en-us/aspnet/core

    I hope this is help you.

    Regards

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.