On this page, you'll find a handful of examples . Each example includes JSX code to demonstrate its functionality. However, please keep in mind that you'll need to provide the necessary onChange methods and store the values for the country and region . For complete instructions on how to add this component to your pages, please refer to the readme documentation
1. Simple Example ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ฆ Canada ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ณ India ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ธ United States ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Usage const [ country , setCountry ] = useState ( '' ) ;
const [ region , setRegion ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
/>
< RegionSelector
country = { country }
value = { region }
onChange = { setRegion }
/>
2. Show/Hide Labels Select Country ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ฆ Canada ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ณ India ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ธ United States ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Select State Select Region Andaman and Nicobar Islands Andhra Pradesh Arunachal Pradesh Assam Bihar Chandigarh Chhattisgarh Dadra and Nagar Haveli and Daman and Diu Delhi Goa Gujarat Haryana Himachal Pradesh Jammu and Kashmir Jharkhand Karnataka Kerala Ladakh Lakshadweep Madhya Pradesh Maharashtra Manipur Meghalaya Mizoram Nagaland Odisha Puducherry Punjab Rajasthan Sikkim Tamil Nadu Telangana Tripura Uttarakhand Uttar Pradesh West Bengal
Usage const [ country , setCountry ] = useState ( '' ) ;
const [ region , setRegion ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
label = " Select Country "
value = { country }
onChange = { setCountry }
showLabel
label = " Select Country "
/>
< RegionSelector
label = " Select Region "
country = { country }
value = { region }
showLabel
label = " Select State "
onChange = { setRegion }
/>
3. Personalize the name, class, and ID attributes of both dropdowns to suit your needs. Select Country ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ฆ Canada ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ณ India ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ธ United States ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Select State Select Region
Usage const [ country , setCountry ] = useState ( '' ) ;
const [ region , setRegion ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
labelProps = { { className : 'testClassname' , style : { textTransform : 'uppercase' } } }
inputProps = { {
id : 'country' ,
className : 'selectorInput' ,
name : "countrySelect"
} }
showLabel
label = " Select Country "
/>
< RegionSelector
country = { country }
value = { state }
onChange = { setstate }
inputProps = { {
id : 'region' ,
className : 'selectorInput' ,
name : "regionSelect"
} }
showLabel
label = " Select State "
/>
4. Shortened names for countries and regions Select Country ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ฆ Canada ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ณ India ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ธ United States ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Select State Select Region
Usage const [ country , setCountry ] = useState ( '' ) ;
const [ region , setRegion ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
shortCode
showLabel
label = " Select Country "
/>
< RegionSelector
country = { country }
value = { state }
onChange = { setstate }
shortCode
showLabel
label = " Select State "
/>
5. The Country and Region dropdowns support the use of arbitrary attributes, including style and tabindex Select Country ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ฆ Canada ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ณ India ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ธ United States ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Select State Select Region
Usage const [ country , setCountry ] = useState ( '' ) ;
const [ region , setRegion ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
showLabel
label = " Select Country "
labelProps = { { className : 'testClassname' ,
style : { textTransform : 'uppercase' , color : 'red' }
} }
inputProps = { { className : 'selectorInput' ,
style : { borderColor : 'red' ,
background : "rgb(42, 39, 52)" , color : '#fff'
}
} }
/>
< RegionSelector
country = { country }
value = { state }
onChange = { setState }
showLabel
label = " Select State "
labelProps = { { className : 'testClassname' ,
style : { textTransform : 'uppercase' , color : 'blue' }
} }
inputProps = { { className : 'selectorInput' ,
style : { borderColor : '#000' , background : "#e9e7dc" , color : '#000' }
} }
/>
6. Prioritize India, United States and the UK by displaying them at the top of the dropdown list. Select Country ๐จ๐ฆ Canada ๐ฎ๐ณ India ๐บ๐ธ United States ๐ฆ๐ซ Afghanistan ๐ฆ๐ฝ ร
land Islands ๐ฆ๐ฑ Albania ๐ฉ๐ฟ Algeria ๐ฆ๐ธ American Samoa ๐ฆ๐ฉ Andorra ๐ฆ๐ด Angola ๐ฆ๐ฎ Anguilla ๐ฆ๐ถ Antarctica ๐ฆ๐ฌ Antigua and Barbuda ๐ฆ๐ท Argentina ๐ฆ๐ฒ Armenia ๐ฆ๐ผ Aruba ๐ฆ๐บ Australia ๐ฆ๐น Austria ๐ฆ๐ฟ Azerbaijan ๐ง๐ธ Bahamas ๐ง๐ญ Bahrain ๐ง๐ฉ Bangladesh ๐ง๐ง Barbados ๐ง๐พ Belarus ๐ง๐ช Belgium ๐ง๐ฟ Belize ๐ง๐ฏ Benin ๐ง๐ฒ Bermuda ๐ง๐น Bhutan ๐ง๐ด Bolivia ๐ง๐ถ Bonaire, Sint Eustatius and Saba ๐ง๐ฆ Bosnia and Herzegovina ๐ง๐ผ Botswana ๐ง๐ป Bouvet Island ๐ง๐ท Brazil ๐ฎ๐ด British Indian Ocean Territory ๐ง๐ณ Brunei Darussalam ๐ง๐ฌ Bulgaria ๐ง๐ซ Burkina Faso ๐ง๐ฎ Burundi ๐ฐ๐ญ Cambodia ๐จ๐ฒ Cameroon ๐จ๐ป Cape Verde ๐ฐ๐พ Cayman Islands ๐จ๐ซ Central African Republic ๐น๐ฉ Chad ๐จ๐ฑ Chile ๐จ๐ณ China ๐จ๐ฝ Christmas Island ๐จ๐จ Cocos (Keeling) Islands ๐จ๐ด Colombia ๐ฐ๐ฒ Comoros ๐จ๐ฌ Congo, Republic of the (Brazzaville) ๐จ๐ฉ Congo, the Democratic Republic of the (Kinshasa) ๐จ๐ฐ Cook Islands ๐จ๐ท Costa Rica ๐จ๐ฎ Cรดte d'Ivoire, Republic of ๐ญ๐ท Croatia ๐จ๐บ Cuba ๐จ๐ผ Curaรงao ๐จ๐พ Cyprus ๐จ๐ฟ Czech Republic ๐ฉ๐ฐ Denmark ๐ฉ๐ฏ Djibouti ๐ฉ๐ฒ Dominica ๐ฉ๐ด Dominican Republic ๐ช๐จ Ecuador ๐ช๐ฌ Egypt ๐ธ๐ป El Salvador ๐ฌ๐ถ Equatorial Guinea ๐ช๐ท Eritrea ๐ช๐ช Estonia ๐ช๐น Ethiopia ๐ซ๐ฐ Falkland Islands (Islas Malvinas) ๐ซ๐ด Faroe Islands ๐ซ๐ฏ Fiji ๐ซ๐ฎ Finland ๐ซ๐ท France ๐ฌ๐ซ French Guiana ๐ต๐ซ French Polynesia ๐น๐ซ French Southern and Antarctic Lands ๐ฌ๐ฆ Gabon ๐ฌ๐ฒ Gambia, The ๐ฌ๐ช Georgia ๐ฉ๐ช Germany ๐ฌ๐ญ Ghana ๐ฌ๐ฎ Gibraltar ๐ฌ๐ท Greece ๐ฌ๐ฑ Greenland ๐ฌ๐ฉ Grenada ๐ฌ๐ต Guadeloupe ๐ฌ๐บ Guam ๐ฌ๐น Guatemala ๐ฌ๐ฌ Guernsey ๐ฌ๐ณ Guinea ๐ฌ๐ผ Guinea-Bissau ๐ฌ๐พ Guyana ๐ญ๐น Haiti ๐ญ๐ฒ Heard Island and McDonald Islands ๐ป๐ฆ Holy See (Vatican City) ๐ญ๐ณ Honduras ๐ญ๐ฐ Hong Kong ๐ญ๐บ Hungary ๐ฎ๐ธ Iceland ๐ฎ๐ฉ Indonesia ๐ฎ๐ท Iran, Islamic Republic of ๐ฎ๐ถ Iraq ๐ฎ๐ช Ireland ๐ฎ๐ฒ Isle of Man ๐ฎ๐ฑ Israel ๐ฎ๐น Italy ๐ฏ๐ฒ Jamaica ๐ฏ๐ต Japan ๐ฏ๐ช Jersey ๐ฏ๐ด Jordan ๐ฐ๐ฟ Kazakhstan ๐ฐ๐ช Kenya ๐ฐ๐ฎ Kiribati ๐ฐ๐ต Korea, Democratic People's Republic of ๐ฐ๐ท Korea, Republic of ๐ฝ๐ฐ Kosovo ๐ฐ๐ผ Kuwait ๐ฐ๐ฌ Kyrgyzstan ๐ฑ๐ฆ Laos ๐ฑ๐ป Latvia ๐ฑ๐ง Lebanon ๐ฑ๐ธ Lesotho ๐ฑ๐ท Liberia ๐ฑ๐พ Libya ๐ฑ๐ฎ Liechtenstein ๐ฑ๐น Lithuania ๐ฑ๐บ Luxembourg ๐ฒ๐ด Macao ๐ฒ๐ฐ Macedonia, Republic of ๐ฒ๐ฌ Madagascar ๐ฒ๐ผ Malawi ๐ฒ๐พ Malaysia ๐ฒ๐ป Maldives ๐ฒ๐ฑ Mali ๐ฒ๐น Malta ๐ฒ๐ญ Marshall Islands ๐ฒ๐ถ Martinique ๐ฒ๐ท Mauritania ๐ฒ๐บ Mauritius ๐พ๐น Mayotte ๐ฒ๐ฝ Mexico ๐ซ๐ฒ Micronesia, Federated States of ๐ฒ๐ฉ Moldova ๐ฒ๐จ Monaco ๐ฒ๐ณ Mongolia ๐ฒ๐ช Montenegro ๐ฒ๐ธ Montserrat ๐ฒ๐ฆ Morocco ๐ฒ๐ฟ Mozambique ๐ฒ๐ฒ Myanmar ๐ณ๐ฆ Namibia ๐ณ๐ท Nauru ๐ณ๐ต Nepal ๐ณ๐ฑ Netherlands ๐ณ๐จ New Caledonia ๐ณ๐ฟ New Zealand ๐ณ๐ฎ Nicaragua ๐ณ๐ช Niger ๐ณ๐ฌ Nigeria ๐ณ๐บ Niue ๐ณ๐ซ Norfolk Island ๐ฒ๐ต Northern Mariana Islands ๐ณ๐ด Norway ๐ด๐ฒ Oman ๐ต๐ฐ Pakistan ๐ต๐ผ Palau ๐ต๐ธ Palestine, State of ๐ต๐ฆ Panama ๐ต๐ฌ Papua New Guinea ๐ต๐พ Paraguay ๐ต๐ช Peru ๐ต๐ญ Philippines ๐ต๐ณ Pitcairn ๐ต๐ฑ Poland ๐ต๐น Portugal ๐ต๐ท Puerto Rico ๐ถ๐ฆ Qatar ๐ท๐ช Rรฉunion ๐ท๐ด Romania ๐ท๐บ Russian Federation ๐ท๐ผ Rwanda ๐ง๐ฑ Saint Barthรฉlemy ๐ธ๐ญ Saint Helena, Ascension and Tristan da Cunha ๐ฐ๐ณ Saint Kitts and Nevis ๐ฑ๐จ Saint Lucia ๐ฒ๐ซ Saint Martin ๐ต๐ฒ Saint Pierre and Miquelon ๐ป๐จ Saint Vincent and the Grenadines ๐ผ๐ธ Samoa ๐ธ๐ฒ San Marino ๐ธ๐น Sao Tome and Principe ๐ธ๐ฆ Saudi Arabia ๐ธ๐ณ Senegal ๐ท๐ธ Serbia ๐ธ๐จ Seychelles ๐ธ๐ฑ Sierra Leone ๐ธ๐ฌ Singapore ๐ธ๐ฝ Sint Maarten (Dutch part) ๐ธ๐ฐ Slovakia ๐ธ๐ฎ Slovenia ๐ธ๐ง Solomon Islands ๐ธ๐ด Somalia ๐ฟ๐ฆ South Africa ๐ฌ๐ธ South Georgia and South Sandwich Islands ๐ธ๐ธ South Sudan ๐ช๐ธ Spain ๐ฑ๐ฐ Sri Lanka ๐ธ๐ฉ Sudan ๐ธ๐ท Suriname ๐ธ๐ฟ Eswatini ๐ธ๐ช Sweden ๐จ๐ญ Switzerland ๐ธ๐พ Syrian Arab Republic ๐น๐ผ Taiwan ๐น๐ฏ Tajikistan ๐น๐ฟ Tanzania, United Republic of ๐น๐ญ Thailand ๐น๐ฑ Timor-Leste ๐น๐ฌ Togo ๐น๐ฐ Tokelau ๐น๐ด Tonga ๐น๐น Trinidad and Tobago ๐น๐ณ Tunisia ๐น๐ท Turkey ๐น๐ฒ Turkmenistan ๐น๐จ Turks and Caicos Islands ๐น๐ป Tuvalu ๐บ๐ฌ Uganda ๐บ๐ฆ Ukraine ๐ฆ๐ช United Arab Emirates ๐ฌ๐ง United Kingdom ๐บ๐ฒ United States Minor Outlying Islands ๐บ๐พ Uruguay ๐บ๐ฟ Uzbekistan ๐ป๐บ Vanuatu ๐ป๐ช Venezuela, Bolivarian Republic of ๐ป๐ณ Vietnam ๐ป๐ฌ Virgin Islands, British ๐ป๐ฎ Virgin Islands, U.S. ๐ผ๐ซ Wallis and Futuna ๐ช๐ญ Western Sahara ๐พ๐ช Yemen ๐ฟ๐ฒ Zambia ๐ฟ๐ผ Zimbabwe
Usage const [ country , setCountry ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
showLabel
label = " Select Country "
leadingCountries = { [ "in" , "us" , "ca" ] }
/>
7. Approve only particular regions Select Country ๐ฆ๐ซ Afghanistan ๐จ๐ณ China ๐ฉ๐ช Germany ๐ฎ๐ณ India ๐บ๐ธ United States
Select State Select Region
Usage const [ country , setCountry ] = useState ( '' ) ;
< CountrySelector
showCountryFlag
value = { country }
onChange = { setCountry }
showLabel
label = " Select Country "
inputProps = { {
className : 'selectorInput' ,
style : {
borderColor : 'red' ,
background : "rgb(42, 39, 52)" , color : '#fff' ,
}
} }
allowcountry = { [ "us" , "af" , "germany" , "in" , "cn" ] }
/>
< RegionSelector
country = { country }
value = { state }
onChange = { setState }
showLabel
label = " Select State "
inputProps = { {
className : 'selectorInput' ,
style : {
borderColor : 'red' ,
background : "rgb(42, 39, 52)" , color : '#fff' ,
}
} }
whitelist = { {
CA : [ "BC" , "AB" , "MB" ] ,
US : [ "washington" , "Oregon" , "Illinois" ] ,
in : [ 'hp' , "punjab" ] ,
} }
/>