Check out example codes for "angular material number picker". It will help you in understanding the concepts better.

Code Example 1

<md-input-container>
    <input
        mdInput
        type="number"
        id="myNumber"
    />
</md-input-container>

Learn ReactJs, React Native from akashmittal.com