Components
Input Text

Input Text

The Input Text input-text field is the building block of every form.

Example

{
  "version": 1,
  "layout": "vertical",
  "fields": [
    {
      "component": "input-text",
      "label": "My Field",
      "name": "my_field",
      "react-rsuite5": {
        "fullWidth": true
      },
      "hint": "And some help",
      "placeholder": "A placeholder here"
    }
  ],
  "name": "Input-text"
}
Loading...

Reference

PropertyTypeDescription
componentstring
= "input-text"
namestringThe name of the field and the key of the JSON
labelstring | i18nLabel of the field
hintstring | i18nHelp text for the field (generally shown below the input box)
placeholderstring | i18nPlaceholder text, visibile when the field is empty
disabledbooleanDisables and greys out the field
readOnlybooleanPut the field in read only mode
hiddenbooleanHides the field from the form
submitOnEnterbooleanTrigger onSubmit / onError if the user hits Enter key
inputModestringValues: "none", "text", "decimal", "numeric", "tel", "search", "email", "url".
autocompletestringValues: "off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo".
inputTypestringSet the HTML 5 input type, some framework may have specific components for some of these type. Values: "button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week".
Pick up a framework to show specific properties
Bootstrap
React Suite