Package Exports
- react-input-number
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-input-number) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-input-number
React number input component
Installation
yarn add react-input-number
npm install react-input-number --saveUsage
import React, { useState } from 'react';
import InputNumber from 'react-input-number';
function App() {
const [num, setNum] = useState(2.2);
return (
<InputNumber min={10} max={100} step={0.03} value={num} onChange={setNum} />
);
}License
MIT