string

You can specify a type of a component by providing dataType, which will automatically validates the component value. Because almost everything in HTML inputs is outputed as a string, adding the dataType props will also cast the value to given type.

{
component: 'text-field',
name: 'age',
label: 'How old are you?',
dataType: 'number'
}
['integer', 'float', 'number', 'boolean', 'string']