Demos
Empty
<DataInput.Date onChange={(value) => console.log('onChange', value)} />
Placeholder
<DataInput.Dateplaceholder="Enter a date"onChange={(value) => console.log('onChange', value)}/>
Label
<DataInput.Datelabel="Label text"onChange={(value) => console.log('onChange', value)}/>
Label and value
<DataInput.Datevalue="2023-01-16"label="Label text"onChange={(value) => console.log('onChange', value)}/>
Disabled
<DataInput.Datevalue="2023-01-16"label="Label text"onChange={(value) => console.log('onChange', value)}disabled/>
Error
<DataInput.Datevalue="2023-01-16"label="Label text"onChange={(value) => console.log('onChange', value)}error={new FormError('This is what is wrong...')}/>
Validation - Required
<DataInput.Datevalue="2023-01-16"label="Label text"onChange={(value) => console.log('onChange', value)}required/>