Skip to content

NumField prefix #989

Answered by radekmie
w-sr asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @w-sr. In a way, this has nothing to do with uniforms - all you have to do is to provide a component that receives a numeric value and calls onChange with a number as well. Some libraries, like Ant Design, have such a formatting functionality built-in (docs, uniforms playground example). Material-UI does not, so you need to either implement it on your own or use an existing package. One that I found should work with Material-UI is react-number-format. Do let us know whether that worked for you!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radekmie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants