https://github.com/swiftcarrot/react-input-number
React number input component
https://github.com/swiftcarrot/react-input-number
javascript react react-component
Last synced: 2 months ago
JSON representation
React number input component
- Host: GitHub
- URL: https://github.com/swiftcarrot/react-input-number
- Owner: swiftcarrot
- License: mit
- Created: 2015-03-21T16:42:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T16:37:40.000Z (over 2 years ago)
- Last Synced: 2025-03-29T20:05:04.263Z (3 months ago)
- Topics: javascript, react, react-component
- Language: JavaScript
- Homepage: https://swiftcarrot.dev/react-input-number/
- Size: 860 KB
- Stars: 15
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-input-number
[](https://www.npmjs.com/package/react-input-number)
[](https://www.npmjs.com/package/react-input-number)
[](https://travis-ci.org/swiftcarrot/react-input-number)
[](https://codecov.io/gh/swiftcarrot/react-input-number)
[](https://github.com/prettier/prettier)React number input component
### Installation
```sh
yarn add react-input-number
npm install react-input-number --save
```### Demo
[https://swiftcarrot.dev/react-input-number](https://swiftcarrot.dev/react-input-number)
### Basic usage
```javascript
import React, { useState } from 'react';
import InputNumber from 'react-input-number';function App() {
const [num, setNum] = useState(2.2);return (
);
}
```### enableMobileNumericKeyboard
`` will open a numeric keyboard on ios and android devices. Notice that on ios the keyboard doesnot contain the `.`(dot) character for floating numbers.
### License
MIT