greg pfp
greg
@gregs
gmgm got nerd sniped into building a masked big int input that's the UX I usually expect in dapps, gonna clean up and release as a npm package later https://github.com/greg-schrammel/useBigIntInput/tree/main try it here https://use-big-int-input.vercel.app/ feedback is welcomed
10 replies
2 recasts
13 reactions

greg pfp
greg
@gregs
main goals are āœØ just a hook, so it's easy to compose into any design system šŸŽ‰ callbacks with a parsed bigInt šŸ™ƒ shows the right keyboard on mobile šŸŒŽ localized (some locations use commas instead of periods as decimal separator) šŸ’… no unnecessary rerenders
1 reply
0 recast
0 reaction

greg pfp
greg
@gregs
added an extra hook to support history with cmd+z/cmd+shift+z (I'm always reaching for that out of habit) šŸ˜­
0 reply
0 recast
0 reaction