Skip to main content
The TextInputElement class is used to create a text input element in a user interface.

Constructor


Usage

How to create an instance of the TextInputElement class:
In the above example, a new instance of TextInputElement is created with the elementId “name” and the label “Enter name”.

Default Value of the Input Element

The defaultValue prop sets the default value in the text input, For example: