0.1.4 • Published 5 years ago
@folpe/react-tantum v0.1.4
React Tantum
A component to display an amount with currency
Installation
npm install @folpe/react-tantum
or
yarn add @folpe/react-tantum
Example
import React from 'react'
import Tantum from '@folpe/react-tantum'
const myComponent = () => {
;<Tantum>30525,50</Tantum>
}
export default myComponent
Options (WIP)
Props | Value | Def |
---|---|---|
symbol | String | The currency symbol (default : €) |
symbolBefore | Boolean | If the currency must display before amount (default: false) |
thousandSeparator | String | The thousand separator (default: ' ') |
decimalSeparator | String | The decimal separator (default: ',') |
numberDecimal | Integer | The number after float (default: 2) |
vat | String | The vat name |