This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@filiphsandstrom/react-currency-formatter

1.1.1 • 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
/>

TypeScript

import * as React from 'react'
import * as CurrencyFormatter from 'react-currency-formatter'

type Props = {
	price: number,
	currency: string,
}

const ProductionPrice: React.SFC<Props> = (props: Props) => (
	<CurrencyFormatter quantity={props.price} currency={props.currency} />
)

export default ProductionPrice

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 @filiphsandstrom/react-currency-formatter

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

123 kB

Total Files

6

Last publish

Collaborators

  • filiphsandstrom