Country select
A searchable selectbox of 246 countries.
Features
- โ Searchable
- โ List of 246 countries and their flags
- โ Lazy loaded flags
- ๐ Keyboard navigation
- ๐ Localization
- ๐ Multiple options selection
Tag
<country-select>
Get it at
https://crunchy-components.us-southeast-1.linodeobjects.com/countrySelect.wc.js
Attributes
value
Description
Currently selected country
Value
String
Country name or ISO code of the country.
Example
Germany, de
name
Description
Name of the input field which will be used when submited in the form.
Value
String
Arbitrary name
Default
country_select
Example
selected_country
Props
only
Description
Subset of countries to show in the list.
Value
String[]
Country names or ISO codes of the countries.
Example
["Germany", "gb"]
except
Description
List of countries to exclude from list
Value
String[]
Country names or ISO codes of the countries.
Example
["Germany", "gb"]