Docs > Forms > RruTextInput

RruTextInput

Example

Click “Open Sandbox” to see the example source code

Props

Name Description Required
name Unique form element name Yes
label The form element label No
requiredAsterisk Display an asterisk to indicate the field is required No
isPassword Sets the type of the input to ‘password’ No
disabled Controls whether the input field is disabled or not No
dir Text direction. Valid values: auto, ltr, and rtl. No
placeholder A short hint that describes the expected value No
maxLength The maximum number of characters allowed No
autoComplete Provides guidance to the browser as to the type of information expected in the field, this could allow the browser to provide automated assistance in filling out the form field. More info at MDN Web Docs No
list The id of a element located in the same document. The provides a list of predefined values to suggest to the user for this input. The values provided are suggestions, not requirements: users can select from this predefined list or provide a different value. No
onChange A callback function. This is useful if you need to watch the field value No

Default field value

If you read the value of a field of this type, and the field did not have an initial value nor it was filled/entered by the user; then the default value is null.