A random genarated number pad for react
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 |
npm install react-random-numpad --save
import RandomNumpad from "react-random-numpad";
import "react-random-numpad/dist/style.min.css";
<RandomNumpad
supportDecimal={false}
onChange={() => {}}
classNames="custom-class"
/>
MIT Licensed. Copyright (c) Farhad Yasir 2019.