Field Componentt

Main text field of a form.

Propertiest

PropertyTypeDescription
Typeselecttext, number, date, or e-mail
Input nametextName of the form field
PlaceholdertextText to show when the field has no value
Disabledboolean
Disable Browser Autocompleteboolean

Maskt

Field Mask

Field inputs can have masks to improve your form's UX. Some masks examples:

  • Phone number: +00 (00) 00000-0000
PropertyTypeDescription
Masktext[]mask template

Validationst

Field Validation

PropertyTypeDescription
Validationselecte-mail, URL, string, or custom
MessagetextError message
RequiredbooleanIf the field is required
Required MessagetextRequired error message

The string validation has an additional prop

PropertyTypeDescription
MatchregexRegex to validate the input value

The Custom validation has an additional prop

PropertyTypeDescription
Custom ValidationcodeJS code to validate the input value