Socket
Socket
Sign inDemoInstall

react-input-number

Package Overview
Dependencies
84
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-input-number

React number input component


Version published
Weekly downloads
3.5K
decreased by-2.76%
Maintainers
1
Install size
6.91 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 07 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc