9.2.0 • Published 10 months ago

dw-neit-rc-input-number v9.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

dw-neit-rc-input-number

Input number control.

NPM version npm download build status Codecov bundle size dumi

Screenshots

Install

dw-neit-rc-input-number

Usage

import InputNumber from 'dw-neit-rc-input-number';

export default () => <InputNumber defaultValue={10} />;

Development

npm install
npm start

Example

http://127.0.0.1:8000/examples/

online example: https://input-number.vercel.app/

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

Mouse Wheel

  • When you scroll up or down, the input value will be increased or decreased by step
  • Scrolling with the Shift key, the input value will be changed by 10 * step

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

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