Phone Input

A component for inputting phone numbers with international prefix selection.

Component Examples

Basic Example

Basic usage example, showing the default phone input.

300px

Preset Value

You can preset a phone number using the model-value property.

300px

Form Integration

Example of using the phone input in a form.

300px

Features

  • Supports international prefix selection
  • Includes common country/region codes
  • Supports prefix search
  • Supports custom styling and theming
  • Supports form validation

Component Properties

PropertyDescriptionTypeDefault
idThe ID of the input field, defaults to 'phone'stringphone
phonePrefix / v-model:phonePrefixthemeDocs.phoneInput.props.phonePrefixstring'86'
phoneNumber / v-model:phoneNumberthemeDocs.phoneInput.props.phoneNumberstring''
requiredWhether the field is requiredbooleanfalse

Component Events

EventDescriptionParameters
update:phonePrefixthemeDocs.phoneInput.events.updatePhonePrefix
:
:
:
:
:
:
update:phoneNumberthemeDocs.phoneInput.events.updatePhoneNumber
:
:
:
:
:
:
Design Empowers, Innovation Unlimited