UsePhoneInputOptions
Properties
Section titled “Properties”countries?
Section titled “countries?”countries?: string[];country?
Section titled “country?”country?: string;defaultCountry?
Section titled “defaultCountry?”defaultCountry?: string;defaultValue?
Section titled “defaultValue?”defaultValue?: string;disabled?
Section titled “disabled?”disabled?: boolean;id?: string;locale?
Section titled “locale?”locale?: string;maxLength?
Section titled “maxLength?”maxLength?: number;onBlur?
Section titled “onBlur?”onBlur?: (event) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | FocusEvent<HTMLElement> |
Returns
Section titled “Returns”void
onChange?
Section titled “onChange?”onChange?: (value, details) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
details | PhoneDetails |
Returns
Section titled “Returns”void
onCountryChange?
Section titled “onCountryChange?”onCountryChange?: (iso2) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
iso2 | string |
Returns
Section titled “Returns”void
onFocus?
Section titled “onFocus?”onFocus?: (event) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | FocusEvent<HTMLElement> |
Returns
Section titled “Returns”void
onWarn?
Section titled “onWarn?”onWarn?: (warning) => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
warning | PhoneWarning |
Returns
Section titled “Returns”void
readOnly?
Section titled “readOnly?”readOnly?: boolean;value?
Section titled “value?”value?: string;