Skip to content

Demos

Empty

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

Placeholder

<DataInput.Currency
placeholder="Enter a number"
onChange={(value) => console.log('onChange', value)}
/>

Label

<DataInput.Currency
label="Amount"
onChange={(value) => console.log('onChange', value)}
/>

Label and value

<DataInput.Currency
value={150000}
currency="NOK"
label="Amount"
onChange={(value) => console.log('onChange', value)}
/>

Disabled

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

Error

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

Validation - Required

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