# tl-react-numeric-input

> React component as a numeric input field

Latest version **1.3.3** (published 2020-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install tl-react-numeric-input
pnpm add tl-react-numeric-input
yarn add tl-react-numeric-input
bun add tl-react-numeric-input
```

## 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.3.3 |
| Published | 2020-01-07 |
| First published | 2019-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 47.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tyAppLyapp |
| Maintainers | mitrophd |
| Keywords | input, react, component, field, number, numeric |

## Links

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

## 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.3.3 (latest) — 2020-01-07
- 1.3.2 — 2019-12-08
- 1.3.1 — 2019-12-08
- 1.3.0 — 2019-11-28
- 1.2.9 — 2019-11-16
- 1.2.8 — 2019-11-03
- 1.2.7 — 2019-09-12
- 1.2.6 — 2019-09-01
- 1.2.5 — 2019-08-28
- 1.2.4 — 2019-08-28
- 1.2.3 — 2019-08-15
- 1.2.2 — 2019-08-14
- 1.2.1 — 2019-08-14
- 1.2.0 — 2019-08-13
- 1.1.9 — 2019-08-13
- … 18 more at https://npm.io/package/tl-react-numeric-input/versions

## README

[![TLNumericInput](https://repository-images.githubusercontent.com/184097031/25e8c000-be37-11e9-9a69-042a652b5cd2)](https://www.npmjs.com/package/tl-react-numeric-input)

# TLNumericInput

> React component as a numeric input field

[![Known Vulnerabilities](https://snyk.io//test/github/MitrophD/tl-react-numeric-input/badge.svg?targetFile=package.json)](https://snyk.io//test/github/MitrophD/tl-react-numeric-input?targetFile=package.json) ![GitHub issues](https://img.shields.io/github/issues/MitrofD/tl-react-numeric-input) [![Maintainability](https://api.codeclimate.com/v1/badges/9f201ce717d730bdc6de/maintainability)](https://codeclimate.com/github/MitrophD/tl-react-numeric-input/maintainability) [![npm version](https://badge.fury.io/js/tl-react-numeric-input.svg)](https://badge.fury.io/js/tl-react-numeric-input) [![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/MitrophD/tl-react-numeric-input) ![David](https://img.shields.io/david/MitrophD/tl-react-numeric-input) ![David](https://img.shields.io/david/dev/MitrophD/tl-react-numeric-input) ![David](https://img.shields.io/david/peer/MitrophD/tl-react-numeric-input)

[![npmjs](https://nodei.co/npm/tl-react-numeric-input.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/tl-react-numeric-input)

## Installation

Use the package manager to install tl-react-numeric-input:

```shell
  yarn add tl-react-numeric-input
  # or
  npm i tl-react-numeric-input
```

## Demo

Download and unzip archive or clone with command:

```shell
  git clone https://github.com/MitrofD/tl-react-numeric-input.git
```

Then install dependencies:

```shell
  yarn install
  # or
  npm install
```

Last step run **start** command:

```shell
  yarn run start
  # or
  npm run start
```

## Usage

```js
  import TLNumericInput from 'tl-react-numeric-input';

  <TLNumericInput onSet={handleOnSet} />
```

Your handler for the onSet event should expect a TLNumericInput. For example:

```js
  function handleOnSet(numericInput) {
    this.setState({
      numeric: numericInput.value
    });
  }
```

## Attributes

All attributes for input with number type + optional **onSet** handler

## License
[MIT](https://choosealicense.com/licenses/mit/)

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