diff --git a/addons/knobs/src/components/types/Number.js b/addons/knobs/src/components/types/Number.js index e96d4deaf04c..a9237d6e7200 100644 --- a/addons/knobs/src/components/types/Number.js +++ b/addons/knobs/src/components/types/Number.js @@ -85,7 +85,7 @@ class NumberType extends React.Component { NumberType.propTypes = { knob: PropTypes.shape({ name: PropTypes.string, - value: PropTypes.number, + value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), range: PropTypes.bool, min: PropTypes.number, max: PropTypes.number,