mui / mui/material-ui

[NumberInput] Automatic currency formatting

Open
#35,664 5 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: number field type: new feature waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Summary 💡

A Textfield which will get an number (amount in cents) and the input will format it in dollars or euros or whatever currency, according to the currency or the local given to the Input threw a prop

Examples 🌈

It will do something like this. An npm package do already this but it is no longer maintained. Here is the github repository (https://github.com/unicef/material-ui-currency-textfield)
material-ui-currency-field

Motivation 🔦

Currently I am building a admin interface in which i have to edit prices. As usual the API i'm using return to me currecy in cents and i would like to edit the amount in dollars/euro and sumbmit it again in cents to the API

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by reviewing the existing Textfield API and the linked material-ui-currency-textfield package, then determine the supported currency and locale behavior. Done should mean an input can display dollars, euros, or another specified currency while accepting cents from and returning cents to an API.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.