百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-intl-currency-input

> 前端框架
开源

使用 Intl API 实现 i18n 货币输入的 React 组件。

197 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 Intl API 实现 i18n 货币输入的 React 组件。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptintlintl-apireactreact18

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

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