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
@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
@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