react-nebo15-currency-input

0.1.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i react-nebo15-currency-input

Weekly Downloads

7

Version

0.1.6

License

MIT

Last publish

Collaborators

  • bondalex