react-numeric-textbox
An ReactJS numeric textbox component
Dependencies
Demo
https://leovo2708.github.io/react-numeric-textbox/
Installation
After install the above dependencies, install react-numeric-textbox
via:
npm install react-numeric-textbox --save
Usage
<NumericTextboxComponent className=className min=min max=max disabled=disabled autoCorrect=autoCorrect decimals=decimals format=format value=value placeholder=placeholder onChange= this onFocus= this onBlur= this onEnter= this onEscape= this/>
API
const propTypes = className: PropTypesstring min: PropTypesnumber max: PropTypesnumber value: PropTypesnumber placeholder: PropTypesstring decimals: PropTypesnumber disabled: PropTypesbool format: PropTypesstring autoCorrect: PropTypesbool onChange: PropTypesfunc onFocus: PropTypesfunc onBlur: PropTypesfunc onEnter: PropTypesfunc onEscape: PropTypesfunc;
- format string: http://numeraljs.com/#format
Contributing
I am very appreciate for your ideas, proposals and found bugs which you can leave in github issues. Thanks in advance!