Skip to content

Input OTP

This component is used to render a multi field input for IDS or Credentials.

Example Usage

Example

123456
vue
<template>
  <sk-input-otp v-model="value" :length="6" />
  {{ value }}
  <sk-input-otp v-model="value2" :length="3" />
  {{ value2 }}
</template>

<script setup>
import { ref } from 'vue';

const value = ref('123456');
const value2 = ref('');
</script>

Reference

Properties

NameTypeDefaultDescription
v-modelString""Your reactive variable
lengthNumber3Amount of inputs per group
groupsNumber2YAmount of groups
typeNumbertextUse "tel" for only numbers
disabledBooleanfalseDisable the input

Events

NameParametersDescription
@inputvaluetriggered on change