Home > mui-country-code-selector > getCountries
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[]>;
Parameter |
Type |
Description |
---|---|---|
locale |
string |
(Optional) |
Promise<readonly CountryType[]>