4.5.6 • Published 5 years ago

qiliangz-rc-input-number v4.5.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

rc-input-number


input number ui component for react

NPM version build status Test coverage david-dm deps devDependencies Status node version npm download

Screenshots

install

rc-input-number

Usage

var InputNumber = require('rc-input-number');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<InputNumber defaultValue={19}/>, container);

Development

npm install
npm start

Example

http://127.0.0.1:8000/examples/

online example: http://react-component.github.io/input-number/examples/

API

props

Keyboard Navigation

  • When you hit the or key, the input value will be increased or decreased by step
  • With the Shift key (Shift+⬆, Shift+⬇), the input value will be changed by 10 * step
  • With the Ctrl or key (Ctrl+⬆ or ⌘+⬆ or Ctrl+⬇ or ⌘+⬇ ), the input value will be changed by 0.1 * step

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-input-number is released under the MIT license.