UNPKG

react-tangle

Version:

tangle.js style input elements for react

34 lines (23 loc) 682 B
# react-tangle A [tangle.js](http://worrydream.com/Tangle/)-style numeric input for React.js. # api **required** ``` <TangleText value={numeric value} onChange={function to be called on change} /> ``` **optional** ``` onInput={function} className={string, default 'react-tangle-input'} min={numeric, default -Infinity} max={numeric, default Infinity} step={numeric, default 1} format={function, function(x) { return x; }} disabled={boolean, default false} ``` Step is a ratio of pixels moved by mouse versus change in the number. Up/Down arrows increment the value by the step value. ## See Also * [react-number-editor](https://github.com/tleunen/react-number-editor)