react-tangle
Version:
tangle.js style input elements for react
26 lines (18 loc) • 490 B
Markdown
A [tangle.js](http://worrydream.com/Tangle/)-style numeric input for React.js.
**required**
```
<TangleText
value={numeric value}
onChange={function to be called on change} />
```
**optional**
```
className={string, default 'react-tangle-input'}
min={numeric, default -Infinity}
max={numeric, default Infinity}
ratio={numeric, default 1}
format={function, function(x) { return x; }}
```
Ratio is a ratio of pixels moved by mouse versus change in the number.