A tangle.js-style numeric input for React.js.
A tangle.js-style numeric input for React.js.
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}
pixelDistance={numeric, default null}
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.
Pixel distance is the number of pixels the mouse has to travel before
incrementing by step
.