0.1.6 • Published 9 years ago
react-nebo15-currency-input v0.1.6
React Nebo15 Currency Input
Component for formatting amount in input
Install
npm run react-nebo15-currency-input --saveUsage
import CurrencyInput from 'react-nebo15-currency-input';
ReactDOM.render(
<CurrencyInput
type="text"
decimalSeparator="."
precision={2}
onChange={(value) => console.log('Change', value)}
/>,
document.getElementById('root')
);Properties
decimalSeparator— Decimal separatorprecision- Max decimal precision lengthonChange(value: String)- On input change callback, value is normalized
Other props thrown into input element