Demo-Page Repository

Home > mui-country-code-selector > CCSelectorProps > getOptionLabel

CCSelectorProps.getOptionLabel 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.

A function for rendering the selected option on underlying AutoComplete component. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-getOptionLabel for more information about MUI’s Autocomplete’s getOptionLabel prop.

Signature:

getOptionLabel?: ((option: CountryType) => string) | undefined;