Demo-Page Repository

Home > mui-country-code-selector > defaultRenderOption

defaultRenderOption() 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 rendering the options in the CountryCodeSelector's underlying Autocomplete component. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-renderOption for more information about the renderOption prop.

Signature:

export declare function defaultRenderOption(props: React.HTMLAttributes<HTMLLIElement>, option: CountryType): React.ReactNode;

Parameters

Parameter

Type

Description

props

React.HTMLAttributes<HTMLLIElement>

The props to apply on the li element.

option

CountryType

The option to render.

**Returns:**

React.ReactNode

The option element.