react-number-format-fa

React component to format number in an input or as a text. (support persian and arabic digits)

Usage no npm install needed!

<script type="module">
  import reactNumberFormatFa from 'https://cdn.skypack.dev/react-number-format-fa';
</script>

README

react-number-format-fa

React component to format persian , arabic and english number in an input or as a text based on react-number-format

Features

  1. Prefix, suffix and thousand separator.
  2. Custom format pattern.
  3. Masking.
  4. Custom formatting handler.
  5. Format number in an input or format as a simple text.
  6. Support persian & arabic digits

Install

Through npm npm install react-number-format-fa --save

Usage

ES6

import NumberFormat from 'react-number-format-fa';

ES5

const NumberFormat = require('react-number-format-fa');

Typescript

import NumberFormat from 'react-number-format-fa';
//or
import { default as NumberFormat } from 'react-number-format-fa';



👉 Read More about react-number-format