Demo-Page Repository

Home > mui-country-code-selector > defaultGetOptionKey

defaultGetOptionKey() function

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.

Default function for getting the option key string in the CountryCodeSelector's underlying Autocomplete component. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-getOptionKey for more information about the getOptionKey prop.

Signature:

export declare function defaultGetOptionKey(option: CountryType): string;

Parameters

Parameter

Type

Description

option

CountryType

**Returns:**

string

The string to be used as the key of the option.