Made with create-react-library
npm install currency-formatter-reactbash
npm install --save currency-formatter-react
`
Usage
`jsx
import CurrencyFormatter from 'currency-formatter-react'
`
$3
| Props | Options | Default | Description |
| ----------------- | ------- | ------- | ---------------------------------------- |
| value | number | none | Value which need to be format |
| thousandSeparator | boolean | true | Add thousand separators on number |
| currency | string | USD | Add Currency Code (INR , USD , GBP ..) |
| isFloat | boolean | false | make this prop to true if value is float |
$3
| Currency Code | Currency | Symbol |
| ------------- | ------------------ | ------ |
| CAD | Canadian Dollar | $ |
| EUR | Euro | € |
| GBP | Great Britan Pound | £ |
| INR | Indian Rupee | ₹ |
| JPY | Japanese Yen | ¥ |
| LKR | Sri Lanka Rupee | Rs |
| NZD | New Zealand Dollar | $ |
| SGD | Singapore Dollar | $ |
| THB | Baht | ฿ |
| USD | US Dollar | $ |
| ZAR | Rand | R |
$3
`jsx
`
Output : $ 1,257,856
`jsx
`
Output : ₹ 1,257,856
`jsx
`
Output : £ 1,257,856
`jsx
value={1257856.85}
currency='INR'
thousandSeparator={false}
isFloat={true}
/>
``