Home > mui-country-code-selector > CountryCodeSelector
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Autocomplete component to select the country code of a phone number from a list of countries. Based on the MUI Autocomplete
component (https://mui.com/material-ui/react-autocomplete). Can be used in conjunction with a text input field and common state between the subcomponents to create a complete phone number input component.
Signature:
declare function CountryCodeSelector({ autoHighlight, autoSelect, filterOptions, getOptionKey, getOptionLabel, handleHomeEndKeys, label, renderOption, renderInput, shrink, slotProps, variant, renderCountRef, ...rest }: CCSelectorProps): import("react/jsx-runtime").JSX.Element;
Parameter |
Type |
Description |
---|---|---|
{ autoHighlight, autoSelect, filterOptions, getOptionKey, getOptionLabel, handleHomeEndKeys, label, renderOption, renderInput, shrink, slotProps, variant, renderCountRef, …rest } |
import(“react/jsx-runtime”).JSX.Element