How to use rc-input-number - 1 common examples

To help you get started, we’ve selected a few rc-input-number examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qantasairways / runway / src / components / NumericInput / index.js View on Github external
<span id="{this.getAriaDescriptionId()}" aria-atomic="true" aria-live="off">
          {`Current value is ${value}.`}
          {ariaDescription ? ` ${ariaDescription}` : ''}

NumericInput.propTypes = {
  /** Flag to display styles to show the current value is invalid */
  highlightInvalid: PropTypes.bool,
  /** Function to set the ref on the input
   * @param {Node} inputRef The input element */
  setRef: PropTypes.func,
  /** String for the html label */
  label: PropTypes.string,
  /** String for the input description */
  ariaDescription: PropTypes.string,
  /** Optional id string for the input */
  id: PropTypes.string.isRequired,
  /** Triggered when the user changes the value
   * @param {Number} value New value */
  onChange: PropTypes.func,


React input-number component

Latest version published 3 months ago

Package Health Score

89 / 100
Full package analysis

Popular rc-input-number functions