Files
oa/documentation/plugins/imask-input/v-imask-input-documentation.md
2025-05-24 01:49:48 +09:00

917 B

state
state
value

VIMaskInput

Vuero ships with the <VIMaskInput /> component, a wrapper arround the great imask javascript library. Check the code for more details.

<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>