Does compose have a specific way to deal with Inpu...
# compose-web
l
Does compose have a specific way to deal with Input masking? I see that there is a different function for each InputType, so maybe there's something for masking?
b
You can do that via css ot with input element and type=password attr
l
Like a credit card or phone number mask via css?
I'm trying to do those masks via https://github.com/filamentgroup/politespace
But I'm failing hard to include an external library to my project 😅
I did
Copy code
implementation(npm("politespace", "1.0.2"))
But the library code won't execute on my elements
b
Because it's not referenced in your kt code, so side effects are not loaded?
l
Probably. Do you have a sample anywhere on how to apply JS code inside my Kotlin code?
I'm trying to follow this, but slow steps
This shows how to include both side effects (css) and usable external js code
👍🏻 1
👍 1
l
Thanks!