Demos
Empty
<DataInput.Email onChange={(value) => console.log('onChange', value)} />
Placeholder
<DataInput.Emailplaceholder="Enter email address..."onChange={(value) => console.log('onChange', value)}/>
Label
<DataInput.Emaillabel="Label text"onChange={(value) => console.log('onChange', value)}/>
Label and value
<DataInput.Emaillabel="Label text"value="my-m@il.com"onChange={(value) => console.log('onChange', value)}/>
Disabled
<DataInput.Emailvalue="my-m@il.com"label="Label text"onChange={(value) => console.log('onChange', value)}disabled/>
Invalid syntax
<DataInput.Emailvalue="Not a mail"label="Label text"onChange={(value) => console.log('onChange', value)}validateInitially/>
Error message
This is what is wrong...
<DataInput.Emailvalue="foo@bar.com"label="Label text"onChange={(value) => console.log('onChange', value)}error={new FormError('This is what is wrong...')}/>
Validation - Required
<DataInput.Emailvalue="my-m@il.com"label="Label text"onChange={(value) => console.log('onChange', value)}required/>