tleunen / react-number-editor

Custom number editor (text field) react component
MIT License
70 stars 15 forks source link

react-number-editor

NPM

img

A react component to easily use number inputs. This one acts like those in After Effects or similar software.

Example

var React = require('react');
var NumberEditor = require('react-number-editor');

React.render(
    <NumberEditor min={0} max={1} step={0.01} decimals={2} onValueChange={onValueChange} />,
    document.body
);

Usage

<NumberEditor />

Here are the list of properties available for the component:

demo

To run the demo, executes this command and go to http://localhost:8080: npm run demo

License

MIT, see LICENSE.md for details.

Thanks

Thanks to @mattdesl for his work on number-editor.