https://github.com/nutboltu/react-random-numpad
A random generated number pad for react. For demo visit here https://nutboltu.github.io/react-random-numpad
https://github.com/nutboltu/react-random-numpad
keypad numberpad numpad random random-number react
Last synced: 3 months ago
JSON representation
A random generated number pad for react. For demo visit here https://nutboltu.github.io/react-random-numpad
- Host: GitHub
- URL: https://github.com/nutboltu/react-random-numpad
- Owner: nutboltu
- Created: 2018-12-20T05:14:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T19:42:32.000Z (over 6 years ago)
- Last Synced: 2025-02-23T15:18:25.860Z (3 months ago)
- Topics: keypad, numberpad, numpad, random, random-number, react
- Language: TypeScript
- Homepage:
- Size: 1.26 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-random-numpad
[](https://david-dm.org/nutboltu/react-random-numpad) [](https://travis-ci.org/nutboltu/react-random-numpad) [](https://github.com/semantic-release/semantic-release)
[](https://nodei.co/npm/react-random-numpad/)
A random genarated number pad for react

See [Demo and Documentation](https://nutboltu.github.io/react-random-numpad).
## Props
The component takes the following props.
| Prop | Type | Default | Description |
|-------------------|------------|-------------|-------------|
| `className` | string | - | Additional classnames for the component |
| `supportDecimal` | boolean | false| Include decimal point support in the numpad|
| `onChange` | _function_ | - |Callback function to invoke when a number is pressed |## Installation
```bash
npm install react-random-numpad --save
```## Usage
```javascript
import RandomNumpad from "react-random-numpad";
import "react-random-numpad/dist/style.min.css";{}}
classNames="custom-class"
/>
```## License
MIT Licensed. Copyright (c) Farhad Yasir 2019.