question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add NumberInput component

See original GitHub issue

I noticed in the Material-UI’s roadmap a Numeric Input component to be built. If nobody has took the lead then I can help. Recently I had to develop a component like that for a personal project (first screenshot below).

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

I didn’t look deeply but I think about a <NumericField /> wrapping a <TextField />. This text field component would render the step buttons.

Examples 🌈

Capture d’écran 2020-09-04 à 13 45 42 Capture d’écran 2020-09-04 à 13 46 23

Motivation 🔦

Sometimes we want to force an input to only accept numbers, but the support for type="number" has limitations:

Benchmarks

Screenshot 2022-05-12 at 01 13 14 Screenshot 2022-05-12 at 01 13 59 Screenshot 2022-05-12 at 01 14 24

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:276
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

53reactions
aurorapetecommented, Dec 2, 2021

I wanted to chime and say that, from a product designer’s perspective, an incrementer would be very useful to have in Material UI. The software I use on a daily basis (Figma, Adobe products, Cinema 4D) uses this kind of field all the time, and because I work on apps at my company which involve similar visualization and manipulation of values, I want to be able to provide this kind of a control to our users. Pasting a small mockup of the sorts of things we would want it do in our case.

image

So, I’m mainly just chiming in here to say this would be a really valuable to provide in Material UI, and it could help product designers like me advocate more strongly for Material UI in our various spheres of influence. Cheers.

23reactions
violabgcommented, May 4, 2022

any update on this component?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Number Input | Duet Design System
Property Attribute Type accessibleActiveDescendant accessible‑active‑descendant string accessibleAdd accessible‑add string accessibleAddDefaults accessible‑add‑default DuetLangObject | string
Read more >
Number input – Carbon Design System
Number inputs are similar to text inputs, but contain controls used to increase or decrease an incremental value.
Read more >
Number Input - Chakra UI
The NumberInput component is similar to the Input component, but it has controls for incrementing or decrementing numeric values.
Read more >
React number input examples
You can use className for adding CSS classes. This component was designed play well with Bootstrap and here is an example with .form-control...
Read more >
react-numeric-input - npm
Number input component that can replace the native number input which is not yet very well supported and where it is, it does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found