Demo-Page Repository

Home > mui-country-code-selector > CountryType > displayIso

CountryType.displayIso 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.

The display version of the ISO 3166 code in the iso field.

Some entries are not real countries, but subdivisions of one (e.g., Ascension, SH-AC). Correct ISO 3166-2 subdivision code includes the two letter ISO 3166-1 code of the larger entity and a two letter code for the subdivision separated with a dash. Due to way Vite imports json files, it is easier to not include the dash in the iso field that is used as key in the json files containing the country name translations. In those cases the display version of the ISO 3166-2 code is stored in this field.

Signature:

displayIso?: string;