@byndyusoft-ui/formatted-number
v0.1.0
Published
Byndyusoft UI FormattedNumber React Component
Downloads
6
Readme
@byndyusoft-ui/formatted-number
Render your number with dividing digits and inserting thin space. You can use all power of
Intl.NumberFormat()
utility. For example, you can render numbers as money values. Or you can calculate maximum number of decimal places of your numbers' array by usinggetMaxFractionalPartOfNumbers()
function and set fraction digits count of number byminimumFractionDigits
option. Also, you can customizeformatter
andparseNumberToParts
functions, and divider symbol between number's parts bynumberPartsDividerClassName
property.
Installation
npm i @byndyusoft-ui/formatted-number
# or
yarn add @byndyusoft-ui/formatted-number