react-numeric-input
react-numeric-input copied to clipboard
What does the "size" prop do?
I'm having a hard time figuring out what does the "size" prop do. There is no documentation about it and in the code I can't seem to figure out what it does.
It appears to change the width by an increment of 9px (or thereabout). It's a bit confusing, as the default behaviour is for the width of the input to be 200.988px. The component won't shrink with it's container (which I feel would make more sense, intuitively?), so you have to set the size after you'd decided on the container size - as I understand.
Here's a codesandbox demo: https://codesandbox.io/s/react-numeric-input-9frhm?file=/src/App.tsx