forked from alexplumb/material-ui-phone-number
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.d.ts
27 lines (24 loc) · 771 Bytes
/
index.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
import { TextFieldProps } from "@mui/material";
import * as React from "react";
export type MuiPhoneNumberProps = TextFieldProps & {
autoFormat?: boolean;
classes?: any;
countryCodeEditable?: boolean;
defaultCountry?: string;
disableAreaCodes?: boolean;
disableCountryCode?: boolean;
disableDropdown?: boolean;
dropdownClass?: string;
enableLongNumbers?: boolean;
excludeCountries?: string[];
inputClass?: string;
onChange: (
e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string
) => void;
onlyCountries?: string[];
preferredCountries?: string[];
regions?: [string] | string;
masks?: { [countryIso2: string]: string }
};
declare const MuiPhoneNumber: React.FC<MuiPhoneNumberProps>;
export default MuiPhoneNumber;