-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-phone-input-2.d.ts
44 lines (41 loc) · 1.5 KB
/
react-phone-input-2.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
declare module 'react-phone-input-2' {
import * as React from 'react';
export interface PhoneInputProps {
value: string;
onChange: (value: string, country: any, e: any, formattedValue: string) => void;
country?: string;
onlyCountries?: string[];
preferredCountries?: string[];
inputClass?: string;
buttonClass?: string;
containerClass?: string;
dropdownClass?: string;
searchClass?: string;
autoFormat?: boolean;
disableAreaCodes?: boolean;
disableCountryCode?: boolean;
enableLongNumbers?: boolean;
enableSearch?: boolean;
disableDropdown?: boolean;
disableCountryGuess?: boolean;
excludeCountries?: string[];
placeholder?: string;
searchPlaceholder?: string;
copyNumbersOnly?: boolean;
preserveOrder?: Array<'onlyCountries' | 'preferredCountries'>;
renderStringAsFlag?: string;
disableInitialCountryGuess?: boolean;
defaultMask?: string;
alwaysDefaultMask?: boolean;
masks?: { [key: string]: string };
areaCodes?: { [key: string]: string[] };
localization?: { [key: string]: string };
isValid?: (value: string, country: any) => boolean;
onEnterKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
specialLabel?: string;
countryCodeEditable?: boolean;
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
}
const PhoneInput: React.FC<PhoneInputProps>;
export default PhoneInput;
}