Skip to content

Phone number input

The phone number input allows a user to enter a phone number by selecting the country (international area code) from a dropdown list and entering the rest of the number in a text input field.

Usage

Phone number input

When to use

  • For allowing users to enter or update a phone number.
  • When validation and formatting of international phone numbers are required.

Best practices

  • Ensure the input field is wide enough to accommodate different international phone number formats.
  • Use smart defaults, such as showing the country code and phone number format based on the user's location.
  • When collecting non-phone number data, a standard input component should be used.

Except where otherwise noted, content on this site is licensed under MIT License.