Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
decimalPrecision: xor(PropTypes.number, 'significantDigits'),
/**
* Specify the number of significant digits. If the input has more
* significant digits, it will be rounded on blur. If it has less, traling
* zeros will be added on blur.
*
* Pass either decimalPrecision or significantDigits, not both.
*/
significantDigits: xor(PropTypes.number, 'decimalPrecision'),
/**
* object with shape: `{
* text: PropTypes.string,
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
* }`
*/
messages: PropTypes.arrayOf(FormPropTypes.message),
/**
A standard language id
**/
locale: PropTypes.string,
size: PropTypes.oneOf(['medium', 'large']),
layout: PropTypes.oneOf(['stacked', 'inline']),
width: PropTypes.string,
inline: PropTypes.bool,
/**
* Html placeholder text to display when the input has no value. This should be hint text, not a label
* replacement.
*/
placeholder: PropTypes.string,
/**
* Whether or not to disable the input
*/