Home > mui-country-code-selector > defaultRenderOption
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;
Parameter |
Type |
Description |
---|---|---|
props |
React.HTMLAttributes<HTMLLIElement> |
The props to apply on the |
option |
The option to render. |
React.ReactNode
The option element.