# react-numeric-textbox

> An React numeric textbox component

Latest version **1.0.7** (published 2019-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-numeric-textbox
pnpm add react-numeric-textbox
yarn add react-numeric-textbox
bun add react-numeric-textbox
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-10-22 |
| First published | 2018-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Leo Vo |
| Maintainers | leovo2708 |
| Keywords | react, numeric, textbox, react-numeric-textbox, react numeric textbox component |

## Links

- npm: https://www.npmjs.com/package/react-numeric-textbox
- Repository: https://github.com/leovo2708/react-numeric-textbox
- Homepage: https://github.com/leovo2708/react-numeric-textbox#readme
- Issues: https://github.com/leovo2708/react-numeric-textbox/issues
- npm.io page: https://npm.io/package/react-numeric-textbox

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-10-22
- 1.0.6 — 2019-10-22
- 1.0.5 — 2018-09-05
- 1.0.4 — 2018-09-05
- 1.0.3 — 2018-09-05
- 1.0.2 — 2018-09-04
- 1.0.1 — 2018-09-04
- 1.0.0 — 2018-09-04

## README

# react-numeric-textbox

An ReactJS numeric textbox component

## Dependencies

* [ReactJS](https://reactjs.org/)
* [Lodash](https://lodash.com)
* [Numeral](http://numeraljs.com)

## Demo

[https://leovo2708.github.io/react-numeric-textbox/](https://leovo2708.github.io/react-numeric-textbox/)

## Installation

After install the above dependencies, install `react-numeric-textbox` via:
```shell
npm install react-numeric-textbox --save
```

## Usage

```js
<NumericTextboxComponent
  className={className}
  min={min}
  max={max}
  disabled={disabled}
  autoCorrect={autoCorrect}
  decimals={decimals}
  format={format}
  value={value}
  placeholder={placeholder}
  onChange={(event) => this.onChange(event)}
  onFocus={() => this.onFocus(event)}
  onBlur={() => this.onBlur(event)}
  onEnter={() => this.onEnter(event)}
  onEscape={() => this.onEscape(event)}
/>
```

## API
```js
const propTypes = {
  className: PropTypes.string,
  min: PropTypes.number,
  max: PropTypes.number,
  value: PropTypes.number,
  placeholder: PropTypes.string,
  decimals: PropTypes.number,
  disabled: PropTypes.bool,
  format: PropTypes.string,
  autoCorrect: PropTypes.bool,
  onChange: PropTypes.func,
  onFocus: PropTypes.func,
  onBlur: PropTypes.func,
  onEnter: PropTypes.func,
  onEscape: PropTypes.func
};
```

* format string: [http://numeraljs.com/#format](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!

---
_Source: https://npm.io/package/react-numeric-textbox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
