# Usage with Svelte Maska provides simple Svelte action for use with input: ```html ``` - `options` is object with default options ## Minimal example Apply `maska` action to the input along with `data-maska` attribite: ```svelte ``` ## Set mask options To set default [options](/options) for the mask, pass options via **directive value**: ```svelte ``` You can override default options with `data-maska-` attributes on the input. In the example above we set **eager** mode using options and **reversed** mode using `data-maska-reversed` attribute.