Optional
autocompleteInstructs the browser how to autocomplete this field.
{
type: FormInputAutocompleteTypes.CURRENT_PASSWORD
}
Optional
childrenOptional
defaultPrefilled value for the field. This will be passed to the component you pass.
Optional
disabledWhether this field is disabled. The value will still be sent to onSubmit
.
false
Optional
errorSupply your own error message if needed.
Unique ID for this field.
Optional
inputOptional
labelTextual label for this field. It's recommended to keep this for accessibility.
Optional
placeholderProvide an example or specific instructions to the user, or use this as a less accessible but sometimes cleaner label.
"Enter an email address"
Optional
requiredWhether this field is required from a user.
false
Optional
schemaBasic schema for the value.
{ // length must be greater than 3
gt: 3
}
Optional
setOptional
validateCustom function to validate the input. The function must throw an error or it will be assumed the value passes validation.
(value) => {
if (value === 'wrong') throw "Incorrect answer."
}
Optional
valueGenerated using TypeDoc
Specific behaviour/configuration this form field should conform to.