Demo-Page Repository

Home > mui-country-code-selector > getCountries

getCountries() 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.

Returns the international calling codes and names for the countries of the world in CountryType objects.

Signature:

export declare function getCountries(locale?: string): Promise<readonly CountryType[]>;

Parameters

Parameter

Type

Description

locale

string

(Optional)

**Returns:**

Promise<readonly CountryType[]>