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.

When not to use

  • When collecting non-phone number data, a standard Input component should be used.

Best Practices for Phone Number Input

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

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