material-ui-phone-number
Version:
A material-ui react component to format phone numbers. Based on react-phone-input-2
27 lines (23 loc) • 727 B
TypeScript
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;
};
declare const MuiPhoneNumber: React.FC<MuiPhoneNumberProps>;
export default MuiPhoneNumber;