Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-intl-currency-input

> 前端框架
Open source

React component for i18n currency input using Intl API.

197 stars0 likes1 views
WebsiteGitHub

About

React component for i18n currency input using Intl API.

react-intl-currency-input

A React component for i18n currency input using Intl API.

Installation

bash
$ npm install react-intl-currency-input --save-dev

How to use

…

Example

To run the example:

bash
$ npx turbo run start:app

And a new browser window will open at http://localhost:3000

Properties

Name Type Default Description
defaultValue number 0 Sets the default / initial value to be used by the component on the first load
currency string USD Sets the currency code
config object USD related configuration Configuration object compliant with react-intl intlShape
autoFocus boolean false Enables auto-focus when the component gets displayed
autoSelect boolean false Enables auto-select when the component gets displayed
autoReset boolean false Resets component's internal state when loses focus
onChange function undefined (event, value, maskedValued) => {}

Exposes the Event itself, the value with no mask and maskedValue for displaying purposes | | onFocus | function | undefined | (event, value, maskedValued) => {

Called when the component gains focus | | onBlur | function | undefined| (event, value, maskedValued) => {

Called when the component loses focus | | onKeyPress | function| undefined | (event, key, keyCode) => {}

Called when a key is pressed | | max | number| undefined | Maximum value for the input. Input does not change if the value is greater than max |

All the other undocumented properties available for any React Component should also be available.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptintlintl-apireactreact18

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架