UNPKG

material-ui-phone-number-2

Version:

A material-ui react component to format phone numbers. Based on Material UI Phone Number, which ceased to be maintained.

28 lines (24 loc) 771 B
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;