number-format-react
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

NumberFormat

version minzipped size downloads

number-format-react is a React component implementation of the Intl.NumberFormat global object.

Install

  • npm install number-format-react or
  • yarn add number-format-react

Use

import NumberFormat from 'number-format-react';

function MyComponent() {
  return (
    <p>
      My favorite number is
      <NumberFormat>3141.58</NumberFormat>!
    </p>
  );
}

Props

The NumberFormat component supports the entire Intl.NumberFormat API via its props, with strong type-checking. For a full catalog of the Intl.NumberFormat API, check out MDN's documentation.

/number-format-react/

    Package Sidebar

    Install

    npm i number-format-react

    Weekly Downloads

    1

    Version

    2.0.0

    License

    none

    Unpacked Size

    4.53 kB

    Total Files

    4

    Last publish

    Collaborators

    • charlesstover