Skip to content

Demos

Empty

<DataInput.FirstName
onChange={(value) => console.log('onChange', value)}
/>

Placeholder

<DataInput.FirstName
placeholder="Enter email address..."
onChange={(value) => console.log('onChange', value)}
/>

Label

<DataInput.FirstName
label="Label text"
onChange={(value) => console.log('onChange', value)}
/>

Label and value

<DataInput.FirstName
label="Label text"
value="John"
onChange={(value) => console.log('onChange', value)}
/>

Disabled

<DataInput.FirstName
value="John"
label="Label text"
onChange={(value) => console.log('onChange', value)}
disabled
/>

Error

This is what is wrong...
<DataInput.FirstName
value="Unnamed"
label="Label text"
onChange={(value) => console.log('onChange', value)}
error={new FormError('This is what is wrong...')}
/>

Validation - Required

<DataInput.FirstName
value="John"
label="Label text"
onChange={(value) => console.log('onChange', value)}
required
/>