phone element renders a phone-number input with a country selector. It stores and emits phone numbers in E.164 format.
Factory
Example
Options
onlyCountries: restrict the selector to a specific set of countries.preferredCountries: pin these countries to the top of the selector list; the rest follow alphabetically.
Value
'+14155551234'). null until the shopper types a valid number.
FieldError.field
Always 'phone'.