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