0.1.4 • Published 5 years ago

@folpe/react-tantum v0.1.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

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)

PropsValueDef
symbolStringThe currency symbol (default : €)
symbolBeforeBooleanIf the currency must display before amount (default: false)
thousandSeparatorStringThe thousand separator (default: ' ')
decimalSeparatorStringThe decimal separator (default: ',')
numberDecimalIntegerThe number after float (default: 2)
vatStringThe vat name
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago