Demos
Empty
<DataInput.PhoneNumberonChange={(value) => console.log('onChange', value)}/>
Placeholder
<DataInput.PhoneNumberplaceholder="Call this number"onChange={(value) => console.log('onChange', value)}/>
Label
<DataInput.PhoneNumberlabel="Label text"onChange={(value) => console.log('onChange', value)}/>
Label and value
<DataInput.PhoneNumberlabel="Label text"value="+47 98765432"onChange={(value) => console.log('onChange', value)}/>
Disabled
<DataInput.PhoneNumbervalue="+47 12345678"label="Label text"onChange={(value) => console.log('onChange', value)}disabled/>
Error
This is what is wrong...
<DataInput.PhoneNumbervalue="007"label="Label text"onChange={(value) => console.log('onChange', value)}error={new FormError('This is what is wrong...')}/>
Validation - Required
<DataInput.PhoneNumbervalue="+47 888"label="Label text"onChange={(value) => console.log('onChange', value)}required/>