Component that allow to format only numbers. (
123 456 789, etc.)
npm install --save react-numberinput
yarn add react-numberinput
This component work on top of react-maskinput and define custom formatting function called
reformat. Also you can use this component as example to create you own components based on react-maskinput.
You also can set up different input element properties, such as class, data-attributes, etc. This component works well with another libraries, styled-components as example:
;;;const StyledNumberInput = `border-radius: 10px;border-color: rgb(219, 112, 147);`;;