DDS/Components/PhoneInput

PhoneInput

Form

An international phone number input with a searchable country code selector.

Props

PropTypeDefaultDescription
modelValuestring""Full phone number with dial code (v-model).
placeholderstring"6 00 00 00 00"Placeholder for the number input.
disabledbooleanfalseDisables the input.

Examples

Default
vue
<script setup>
const phone = ref('')
</script>
<template>
  <DsPhoneInput v-model="phone" placeholder="6 00 00 00 00" />
</template>

Skeleton

Use DsPhoneInputSkeleton as a loading placeholder while content is being fetched.

Default
vue
<DsPhoneInputSkeleton />

Accessibility

  • Country selector has aria-expanded.
  • Country list is keyboard navigable.
  • type="tel" on the phone input.