Country symbol

Also known as

Flag, Country

Country symbols display an icon that represents the flag of a country or intergovernmental organization. You can use country symbols individually or as a complete package. The country symbols are stylized and representative, so users are more likely to recognize them at smaller sizes, and they maintain their character within the circular form.

To reduce the core package's bundle size, country symbols are in a separate package that you should first install using:

npm install @salt-ds/countries or yarn add @salt-ds/countries

When you need to display an icon that represents the flag of a country or intergovernmental organization.

To import an individual country symbol from the countries Salt package, use its country code:

To import LazyCountrySymbol from the countries Salt package, use:

NameTypeDescriptionDefault
NameTypeDescriptionDefault