A basic usage of advanced select.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Disabled Description User ID
Fixed dropdown position.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Disabled Description User ID
Use custom placeholder with icon.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID
Allow empty option to be selected.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose option... Name Disabled Description User ID
Select multiple options.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID
Select multiple options and add an option template.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Use multiple tag to enable counter option that counts the number of selected options.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID
Use multiple tag to enable counter option that counts the number of selected options.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID Address City Country
Use multiple tag to enable counter option that counts the number of selected options.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Use "hasSearch": true to enable search inside dropdown.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Afghanistan Aland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia (Plurinational State of) Bonaire, Sint Eustatius and Saba Bosnia and Herzegovina Botswana Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cabo Verde Cambodia Cameroon Canada Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Cook Islands Costa Rica Croatia Cuba Curaçao Cyprus Czech Republic Côte Ivoire Democratic Republic of the Congo Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador England Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Federated States of Micronesia Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Holy See 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 Kuwait Kyrgyzstan Laos Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macau Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea North Macedonia Northern Ireland Northern Mariana Islands Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Republic of the Congo Romania Russia Rwanda Réunion 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 Scotland Senegal Serbia Seychelles Sierra Leone Singapore Sint Maarten Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands South Korea South Sudan Spain Sri Lanka State of Palestine Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan Tajikistan Tanzania 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 United States of America Uruguay Uzbekistan Vanuatu Venezuela (Bolivarian Republic of) Vietnam Virgin Islands (British) Virgin Islands (U.S.) Wales Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe
Use "minSearchLength": 3 to set the minimum search length.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Afghanistan Aland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia (Plurinational State of) Bonaire, Sint Eustatius and Saba Bosnia and Herzegovina Botswana Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cabo Verde Cambodia Cameroon Canada Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Cook Islands Costa Rica Croatia Cuba Curaçao Cyprus Czech Republic Côte Ivoire Democratic Republic of the Congo Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador England Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Federated States of Micronesia Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Holy See 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 Kuwait Kyrgyzstan Laos Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macau Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea North Macedonia Northern Ireland Northern Mariana Islands Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Republic of the Congo Romania Russia Rwanda Réunion 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 Scotland Senegal Serbia Seychelles Sierra Leone Singapore Sint Maarten Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands South Korea South Sudan Spain Sri Lanka State of Palestine Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan Tajikistan Tanzania 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 United States of America Uruguay Uzbekistan Vanuatu Venezuela (Bolivarian Republic of) Vietnam Virgin Islands (British) Virgin Islands (U.S.) Wales Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe
Use "searchLimit": 5 for the limit search results.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Afghanistan Aland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia (Plurinational State of) Bonaire, Sint Eustatius and Saba Bosnia and Herzegovina Botswana Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cabo Verde Cambodia Cameroon Canada Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Cook Islands Costa Rica Croatia Cuba Curaçao Cyprus Czech Republic Côte Ivoire Democratic Republic of the Congo Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador England Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Federated States of Micronesia Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Holy See 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 Kuwait Kyrgyzstan Laos Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macau Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island North Korea North Macedonia Northern Ireland Northern Mariana Islands Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Republic of the Congo Romania Russia Rwanda Réunion 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 Scotland Senegal Serbia Seychelles Sierra Leone Singapore Sint Maarten Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands South Korea South Sudan Spain Sri Lanka State of Palestine Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan Tajikistan Tanzania 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 United States of America Uruguay Uzbekistan Vanuatu Venezuela (Bolivarian Republic of) Vietnam Virgin Islands (British) Virgin Islands (U.S.) Wales Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe
Use "isSearchDirectMatch": false to disable direct match searching.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn James.Collins Amanda_Harvey Costa-Quinn James#Collins Amanda%Harvey Costa@Quinn Jam.es Collins Amanda Harv-ey Cost#a Qu-inn
Custom template with removable tags.
Custom template with removable tags.
Build your custom design.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Build your custom design.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Selects stacked small to large sizes.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID Choose Name Email address Description User ID Choose Name Email address Description User ID
Make selects look inactive by adding the disabled boolean attribute to <select> element and use "toggleClasses": "hs-select-disabled:*" class to style it.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID
Basic usage in modal window.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Open modal Choose Name Email address Description User ID
Provides valuable, actionable feedback to your users with HTML5 form validation.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID Please select a valid state.
Choose Name Email address Description User ID Looks good!
Use hs-success and hs-error for dynamic validation state styles.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose Name Email address Description User ID Please select a valid state.
Looks good!
Use addOption and removeOption methods to add/remove options.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Add one option Add three options Remove value 4 Remove values 5, 6, 7
Use addOption and removeOption methods to add/remove options.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Add one option Add three options Remove value 4 Remove values 5, 6, 7
Provides setValue method that helps to set a value programmatically.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Set value to "Amanda Harvey" Set value to "Costa Quinn"
Provides setValue method that helps to set a value programmatically.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Set value to "Amanda Harvey" and "" Set value to "Costa Quinn" and ""
Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Select multiple options. Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Custom template with removable tags. Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Select multiple options and add an option template. Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Use multiple tag to enable counter option that counts the number of selected options. Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Build your custom design. Use "apiUrl": "https://some-path.com/api" to enable build select according to the remote data.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Use apiSelectedValues to preselect values.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Use apiLoadMore to enable infinite scroll.
Requires Additional Installation Note that this feature requires the use of the third-party Floating UI library.
Select that is inside the parent with hidden overflow. Use "dropdownScope": "window". to enable this feature.
Preview HTML
Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Open modal Choose Name Disabled Description User ID Choose Name Email address Description User ID Choose Christina David Alex Samia
Close Save changes
Provides destroy method that helps to destroy a select.
Preview HTML JS
Copy Copy Copy to clipboard with dark: classes
Copy to clipboard with React JSX code
Choose James Collins Amanda Harvey Costa Quinn
Destroy select Reinitialize select