Skip to content

PhoneValidationResult

type PhoneValidationResult = {
errorMessage?: string;
isValid: boolean;
};

Phone number validation result. isValid is the bare fact (reveal-independent, drives e.g. a submit button); errorMessage is the localized reason, present only when a failure is revealed.

Property Type
errorMessage? string
isValid boolean