usePhoneInput
function usePhoneInput(options): UsePhoneInputResult;Headless state for an international phone field: the text, the country, the canonical value, and the caret bookkeeping that makes as-you-type formatting usable. Exported so a consumer can build a completely custom renderer without reimplementing the fiddly parts.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | UsePhoneInputOptions |