Skip to content

Demos

Empty

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

Placeholder

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

Label

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

Label and value

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

Disabled

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

Error

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

Validation - Required

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