Skip to content

MaskInput/OTPInput/PhoneNumberInput #2748

Closed Answered by stoope
darthwade asked this question in Ideas
Discussion options

You must be logged in to vote

@darthwade Hi! Thanks for the good suggestion! We've done some research on this topic and found out that mask implementation adds about 15kb of minified code to the bundle, so we can't afford it until we implement code splitting. However, you can use any inputMask library such as react-number-format. it works smoothly with VKUI Input.
<NumberFormat customInput={Input} format="#### #### #### ####" />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@darthwade
Comment options

Answer selected by inomdzhon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants