React numeric input textfield.
npm install @chickendinosaur/react-ui-numeric-inputReact numeric input textfield.
Built to be as a PureComponent and to be as customizable as possible without defaulting to inline styles.
---
javascript
import NumericInput from '@chickendinosaur/react-ui-numeric-input';
React.render(
value="1"
min={-1}
max={1}
step={0.1}
precision={1}
wrap={true}
onChange={(value) => {
console.log(value);
}}
/>,
document.getElementById('body')
);
`
---
#### Props
Name | Type | Default
----------------------|-------------------------------------|:-------:
value |number or string or null | null
defaultValue |number | null
min |number | Number.MIN_SAFE_INTEGER
max |number | Number.MAX_SAFE_INTEGER
precision |number | 0
step |number | 1
stepDelay |number | 500
stepSpeed |number | 100
clamp |boolean | true
wrap |boolean | false
disabled |boolean | false
textfieldDisabled |boolean | false
className |string | null
style |object | null
btnStyle |object | null
textfieldStyle |object | null
onChange |function | null`