Skip to main content
Options for the usePhoneNumberState hook.

Properties

PropertyTypeDescription
phoneNumber?stringThe initial E.164 phone number string.
countryCode?CountryCodeThe initial country code. Defaults to “US”.
onPhoneNumberChange?(e164: string) => voidCallback when the E.164 phone number changes.
onCountryCodeChange?(countryCode: CountryCode) => voidCallback when the country code changes.