0.1.6 • Published 7 years ago

react-nebo15-currency-input v0.1.6

Weekly downloads
36
License
MIT
Repository
github
Last release
7 years ago

React Nebo15 Currency Input

Build Status

Component for formatting amount in input

Install

npm run react-nebo15-currency-input --save

Usage

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 separator
  • precision - Max decimal precision length
  • onChange(value: String) - On input change callback, value is normalized

Other props thrown into input element

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago