Demos
Empty
<DataInput.LastNameonChange={(value) => console.log('onChange', value)}/>
Placeholder
<DataInput.LastNameplaceholder="Enter email address..."onChange={(value) => console.log('onChange', value)}/>
Label
<DataInput.LastNamelabel="Label text"onChange={(value) => console.log('onChange', value)}/>
Label and value
<DataInput.LastNamelabel="Label text"value="Smith"onChange={(value) => console.log('onChange', value)}/>
Disabled
<DataInput.LastNamevalue="Smith"label="Label text"onChange={(value) => console.log('onChange', value)}disabled/>
Error
This is what is wrong...
<DataInput.LastNamevalue="Unnamed"label="Label text"onChange={(value) => console.log('onChange', value)}error={new FormError('This is what is wrong...')}/>
Validation - Required
<DataInput.LastNamevalue="Smith"label="Label text"onChange={(value) => console.log('onChange', value)}required/>