@blocklet/payment-react
Version:
Reusable react components for payment kit v2
15 lines (14 loc) • 534 B
TypeScript
export interface PhoneFieldProps {
value: string;
country: string;
onChange: (phone: string) => void;
onCountryChange: (country: string) => void;
label: string;
error?: string;
onBlur?: () => void;
}
/**
* Phone input with country flag + dial code selector.
* Standalone version of V1 PhoneInput — no react-hook-form dependency.
*/
export default function PhoneField({ value, country: externalCountry, onChange, onCountryChange, label, error, onBlur, }: PhoneFieldProps): import("react").JSX.Element;