Skip to main content

Input

Container properties

All component configurations support Container properties at the first level.

Special container properties props

Input supports other container properties except for common container properties

NameTypeDefaultSupports Variable PatternDescription
validationvalidation✔️Additional data verification
allowI18nValueboolIs it allowed to enter multiple languages

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️component's className
styleobjectcomponent style
i18nInputLayout'collapsed' | 'flat'Component style

All the remaining componentsProps will be passed to the component root element(Input)。

validation

NameTypeDefaultDescription
requiredboolfalserequired
minLengthnumberMinimum length
minLengthErrorMessagestringError message less than the minimum length
maxLengthnumberMaximum length
maxLengthErrorMessagestringError message greater than maximum length
ootb'isIDNumber' | 'isEmail' | 'isMobilePhoneNum'System-provided verification format
regexstringregular verification
regexErrorMessagestringPrompt message when regular verification error

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementComponent root DOM element
inputHTML Elementinput input box DOM element