Demo-Page Repository

Home > mui-country-code-selector > CCSelectorCompositeProps > filterOptions

CCSelectorCompositeProps.filterOptions property

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.

Custom options for setting how the select options are filtered based on the input. 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:

filterOptions?: (options: CountryType[], state: FilterOptionsState<CountryType>) => CountryType[];