Setting the Value

Label

Prefix and Suffix

TabIndex

Data Binding

Required Input

Minlength and Maxlength Validation

Pattern Validation

The pattern property specifies a regular expression that the element's value is checked against.

Preventing Invalid Input

Error Message

The errorMessage property defines a message that gets shown when the input value is invalid.

NOTE: The message is not visible initially or when the field is valid

Full Form