react-input-number

5.0.19 • Public • Published

react-input-number

npm npm Build Status codecov styled with prettier

React number input component

Installation

yarn add react-input-number
npm install react-input-number --save

Demo

https://swiftcarrot.dev/react-input-number

Basic usage

import React, { useState } from 'react';
import InputNumber from 'react-input-number';
 
function App() {
  const [num, setNum] = useState(2.2);
 
  return (
    <InputNumber min={10} max={100} step={0.03} value={num} onChange={setNum} />
  );
}

enableMobileNumericKeyboard

<InputNumber 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.193,264latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.193,264
5.0.1870
5.0.170
5.0.161
5.0.150
5.0.141
5.0.130
5.0.120
5.0.110
5.0.100
5.0.80
5.0.76
5.0.60
5.0.50
5.0.40
5.0.30
5.0.21
5.0.10
5.0.01
4.0.140
4.0.131
4.0.120
4.0.110
4.0.90
4.0.80
4.0.71
4.0.60
4.0.50
4.0.40
4.0.30
4.0.21
4.0.11
4.0.00
3.1.01
3.0.00
2.1.119
2.1.00
2.0.00
1.3.00
1.2.21
1.2.10
1.2.00
1.1.20
1.1.10
1.1.00
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-input-number

Weekly Downloads

3,369

Version

5.0.19

License

MIT

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • adjusted