Skip to content
R

react-number-format

React component to format number in an input or as a text

by sudhanshuFree

#22in UI Libraries
0In stores

Description

React Number Format is a React library for formatting numbers in an input field or as plain display text. It keeps the user to input that ma…

Highlights

  • Formats numbers in an input as the user types
  • Prefix, suffix and thousands separator support
  • Pattern input masks with PatternFormat
  • Plain text formatting for display with the same components

Ratings & Reviews

No ratings yet

Be the first to rate react-number-format.

People also visit

R

@react-input/mask

React input component for masked input

UI Libraries
Launch
R

react-currency-format

React component to format currency in an input or as a text

UI Libraries
Launch
R

react-currency-input

React component for inputing currency amounts

UI Libraries
Launch
R

react-input-mask

Input masking component for React. Made with attention to UX

UI Libraries
Launch
S

@salutejs/react-maskinput

React mask input component

UI Libraries
Launch
R

react-code-input

React component for entering and validating numbers, text or password

UI Libraries
Launch

react-number-format FAQ

What does React Number Format do?

It formats numbers in a text input as the user types, or formats a number as display text, and keeps the input to the allowed pattern.

What components does it provide?

NumericFormat for numbers and PatternFormat for custom patterns such as masks.

Can I add a prefix or a thousands separator?

Yes. Prefix, suffix and thousands separator are supported as props.

How do I install it?

Run npm install react-number-format or yarn add react-number-format.

Is there a migration guide?

Yes. The documentation includes a migration guide and a page of notes and quirks.

What are the best react-number-format alternatives?

Popular alternatives to react-number-format include @react-input/mask, react-currency-format and react-currency-input. See all react-number-format alternatives

Developer Stuff

Badges