NumberField
This component does not support an uncontrolled state.
Result
Loading...
Live Editor
Currency
The formatOptions prop allows you to pass in any of the Intl.NumberFormat options. The displayed value will be formatted when the field is blurred.
Result
Loading...
Live Editor
Percent
Result
Loading...
Live Editor
PlusMinus
The NumberField component supports a plus/minus stepper. The showButtons prop will display the stepper buttons.
Result
Loading...
Live Editor
Analytics
The NumberField component is trackable through Kyber Analytics. This is the default analytics config.
export default {
value: 'NumberField',
actions: {
onChange: { type: 'NUMBERFIELD_CHANGE', payload: 'Change' },
},
};