Home > mui-country-code-selector > createDefaultFilterOptions
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.
Creates a default filter options function for the CountryCodeSelector
's underlying Autocomplete
component. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-filterOptions and https://mui.com/material-ui/react-autocomplete/#custom-filter for more information about custom filtering.
Signature:
export declare function createDefaultFilterOptions(): (options: CountryType[], state: import('@mui/material').FilterOptionsState<CountryType>) => CountryType[];
Returns:
(options: CountryType[], state: import(‘@mui/material’).FilterOptionsState<CountryType>) => CountryType[]