This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
---
state:
value: ''
---
### VIMaskInput
Vuero ships with the `<VIMaskInput />` component, a wrapper arround the great
[imask javascript library](https://imask.js.org/).
Check the code for more details.
<!--code-->
```vue
<script setup lang="ts">
const value = ref('')
</script>
<template>
<VField v-slot="{ id }">
<VControl>
<VIMaskInput
:id="id"
v-model="value"
autocomplete="cc-csc"
class="input"
:options="{
mask: '000',
}"
placeholder="3 digits code"
/>
</VControl>
</VField>
</template>
```
<!--/code-->
<!--example-->
<VField v-slot="{ id }">
<VControl>
<v-i-mask-input
:id="id"
v-model="frontmatter.state.value"
autocomplete="cc-csc"
class="input"
:options="{
mask: '000',
}"
placeholder="3 digits code"
/>
</VControl>
</VField>
<!--/example-->