react-currency-formatter
Version:
react currency formatter Component
45 lines (32 loc) • 1.49 kB
Markdown
# 💵 react currency formatter
[](https://www.npmjs.com/package/react-currency-formatter)
[](https://www.npmjs.com/package/react-currency-formatter)
[](https://david-dm.org/xDae/react-currency-formatter)
[](https://travis-ci.org/xDae/react-currency-formatter)
[]()
### 💻 [DEMO!](https://xdae.github.io/react-currency-formatter/)
## Usage
#### Simple
```js
import Currency from 'react-currency-formatter';
<Currency
quantity={45685}
currency="EUR"
/>
```
#### Complex
```js
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](https://github.com/xDae/react-currency-formatter/issues/new) for support.
## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/xDae/react-currency-formatter/compare/).