react-currency-formatter
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-currency-formatter package

1.1.0 • Public • Published

💵 react currency formatter

npm npm David Travis license

💻 DEMO!

Usage

Simple

import Currency from 'react-currency-formatter';
 
<Currency
  quantity={45685}
  currency="EUR"
/>

Complex

import Currency from 'react-currency-formatter';
 
<Currency
  quantity={45685}          // Required
  currency="USD"            // Optional (USD by default)
  locale="en_EN"            // Optional
  pattern="##,### !"        // Optional
  decimal=","               // Optional
  group="."                 // Optional
/>

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Package Sidebar

Install

npm i react-currency-formatter

Weekly Downloads

3,356

Version

1.1.0

License

MIT

Last publish

Collaborators

  • xdae