diff --git a/demo/alpine.html b/demo/alpine.html index 6e14ce4..91c7119 100644 --- a/demo/alpine.html +++ b/demo/alpine.html @@ -24,38 +24,42 @@
-
- -
-
masked value:
-
unmasked value:
+
+
+
masked value:
unmasked value:
- +
- + ``` ### **Vue** @@ -47,11 +51,11 @@ And then use it in your `.vue` component: ```js ``` @@ -118,7 +122,7 @@ For modern browsers you can use ES modules build with (optional) [import maps](h } @@ -154,7 +158,7 @@ For modern browsers you can use ES modules build with (optional) [import maps](h } diff --git a/docs/v3/svelte.md b/docs/v3/svelte.md index 3491784..a704a19 100644 --- a/docs/v3/svelte.md +++ b/docs/v3/svelte.md @@ -3,34 +3,38 @@ Maska provides simple Svelte action for use with input: ```html - + ``` -- `options` is object with default options +- `value` could be one of: + - `string` for the mask value (should be enclosed in additional quotation marks: `{'#-#'}`) + - `object` with a default options ## Minimal example -Apply `maska` action to the input along with `data-maska` attribite: +Apply `maska` action to the input: ```svelte - + ``` +?> Please note that the mask value is enclosed in additional quotation marks: `"'#-#'"`. ## Set mask options To set default [options](/options) for the mask, pass options via **directive value**: ```svelte - ``` @@ -42,11 +44,12 @@ Import `vMaska` directive and apply it to the input along with `data-maska` attr ``` +?> Please note that the mask value is enclosed in additional quotation marks: `"'#-#'"`. ## Set mask options @@ -56,12 +59,13 @@ To set default [options](/options) for the mask, pass options via **directive va ### **Composition API** ```vue -