Brand Guide

Components

Phone input

A phone number and its country in one field.

Default

The country picker and the number share one border, so the two take hover, focus and error together.

In a field

As the application form has it: one country to start from, and a filled-in number shown the way it is dialled in that country.

The hiring team may call you to arrange an interview.

Invalid

Disabled

Read-only

The country cannot be changed either. A lock sits at the end.

From your Dex profile.

Best practices

  • The value is the full international number, such as +442079460123, whatever the field shows. An empty field gives an empty string.
  • Set defaultCountry to the country most people will be in, and addInternationalOption={false} so the field always has a country.
  • Set initialValueFormat="national" so a number filled in for the person reads 020 7946 0123, not +44 20 7946 0123. The flag already shows the country.
  • The country list opens with its search first, since most people type their country rather than scroll. Below 640px it opens in a bottom sheet, like the combobox.
  • Give a read-only phone input helper text saying where the number came from.