A dropdown of countries. Rest of the props are passed to the Dropdown component.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
countriesArray

List of country iso codes.

customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

i18nobject

i18n object, has allCountries and preferredCountries keys.

Properties
NameTypeDescription
allCountriesstring

All countries i18n string.

preferredCountriesstring

Preferred countries i18n string.

placeholderstring

Placeholder i18n string.

languagestring

Language code.

preferredCountriesArray

List of preferred country iso codes.

showCallingCodebool

Whether to show the calling code.

showFlagbool

Whether to show the country flags.

showPlaceholderbool

Whether to show the placeholder.

refobject

Forwarded ref.

Since
  • 5.6.2
Returns:

The country dropdown.

Type: 
JSX.Element