Skip to content

usePhoneInput

function usePhoneInput(options?: UsePhoneInputOptions): UsePhoneInputReturn;

Headless hook owning phone-input value + validation state. The display string is the single source of truth; e164 is derived. <PhoneInput> is presentational — spread inputProps onto it and formControlProps onto the surrounding <FormControl>.

Parameter Type
options? UsePhoneInputOptions

UsePhoneInputReturn

Docs https://caspeco.github.io/casper-ui-library/components/phone-input