# Usage with Alpine.js Maska provides custom Alpine.js directive for use with input: ```html ``` - `argument` is a name of the bound variable (see example below) - `modifier` modifier for bound variable value, could be one of: - `masked` (default): variable will get a masked value (as in v-model) - `unmasked`: variable will get an unmasked (raw) value - `completed`: variable will be boolean, showing that mask is completed - `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 `xMaska` directive to the input: ```html ``` ?> Please note that the mask value is enclosed in additional quotation marks: `"'#-#'"`. ## Set mask options To set a default [options](/options) for the mask, pass options via **directive value**: ```html