diff --git a/libraries/ui-library/package.json b/libraries/ui-library/package.json index 3b07ed585..12f3dd27f 100644 --- a/libraries/ui-library/package.json +++ b/libraries/ui-library/package.json @@ -36,7 +36,8 @@ }, "dependencies": { "@stencil/core": "^4.12.6", - "@types/resize-observer-browser": "^0.1.5" + "@types/resize-observer-browser": "^0.1.5", + "imask": "^7.6.1" }, "devDependencies": { "@fontsource/noto-sans": "^4.5.11", diff --git a/libraries/ui-library/src/components/six-input/index.html b/libraries/ui-library/src/components/six-input/index.html index 9e8ef7b58..dd221067b 100644 --- a/libraries/ui-library/src/components/six-input/index.html +++ b/libraries/ui-library/src/components/six-input/index.html @@ -334,6 +334,40 @@
Sometimes inputs need to be masked in order to enforce a certain format.
+Use the mask
attribute to apply a simple mask.
Use the setMask
method to apply more complex masks
For more info on the format of the mask object passed to setMask()
and the mask
attribute, take a look at https://imask.js.org/
value
will contain any additional characters added by the mask.
+