Phone number
+33
A field to get a phone number.
The PhoneNumberField is used to get user input in a text field. It shares many features of the TextField component, so refer to its documentation.
This field has two interactive fields: a dropdown for country selection and a text field for phone number. All the country data needs to be provided by the user.
The countryOptions takes an array of object with following fields:
interface CountryPhoneOption { /** * A unique ID for the option. */ id: string /** * URL pointing to the flag of the country. */ flagUrl: string /** * Name of the country. */ name: string /** * Phone number prefix. */ prefix: string /** * Mask to format the number. */ mask?: string /** * Example to show in the placeholder. */ example: string }