![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
tom-select
Advanced tools
Tom Select is a versatile and dynamic <select> UI control. Forked from Selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation, it's useful for tagging, contact lists, country selectors, etc.
Tom-select is a JavaScript library for creating customizable and feature-rich select boxes. It enhances the standard HTML select element with additional functionalities such as search, multi-select, and remote data loading.
Single Select
This feature allows you to create a single select dropdown with enhanced UI and search capabilities.
<select id='select-single'>
<option value='1'>Option 1</option>
<option value='2'>Option 2</option>
</select>
<script>
new TomSelect('#select-single');
</script>
Multi Select
This feature enables users to select multiple options from a dropdown list, with the ability to search and filter options.
<select id='select-multi' multiple>
<option value='1'>Option 1</option>
<option value='2'>Option 2</option>
</select>
<script>
new TomSelect('#select-multi');
</script>
Remote Data Loading
This feature allows the select box to load options from a remote data source, making it suitable for large datasets or dynamic data.
<select id='select-remote'></select>
<script>
new TomSelect('#select-remote', {
load: function(query, callback) {
var url = 'https://api.example.com/search?q=' + encodeURIComponent(query);
fetch(url)
.then(response => response.json())
.then(json => {
callback(json.items);
}).catch(() => {
callback();
});
}
});
</script>
Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Compared to Tom-select, Select2 is more mature and widely used, but it requires jQuery as a dependency.
Chosen is a JavaScript plugin that makes long, unwieldy select boxes more user-friendly. It offers similar features like search and multi-select. However, Chosen is less feature-rich compared to Tom-select and has not been actively maintained in recent years.
React-select is a flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete, async and creatable support. It is specifically designed for React applications, whereas Tom-select is a vanilla JavaScript library.
Tom Select is a dynamic, framework agnostic, and lightweight (~16kb gzipped) <select> UI control. With autocomplete and native-feeling keyboard navigation, it's useful for tagging, contact lists, country selectors, and so on. Tom Select was forked from selectize.js with the goal of modernizing the code base, decoupling from jQuery, and expanding functionality.
<input id="tom-select-it" />
<link rel="stylesheet" href="/css/tom-select.default.css">
<script src="/js/tom-select.complete.js"></script>
<script>
var config = {};
new TomSelect('#tom-select-it',config);
</script>
Available configuration settings are documented here
All pre-built files needed to use Tom Select can be found in the "dist" folder via any of these sources:
Source | |
---|---|
jsDelivr |
The fastest way to add Tom Select into your project is to just include the js and css from jsDelivr.
<link href="https://cdn.jsdelivr.net/npm/tom-select/dist/css/tom-select.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/tom-select/dist/js/tom-select.complete.min.js"></script> |
npm |
|
GitHub | Clone or download the full repo.
Use npm run build and other commands to build from source, test and start the doc server.
|
Many thanks to all our sponsors who help make development possible. Become a sponsor.
Copyright © 2013–2023 Contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Tom Select is a versatile and dynamic <select> UI control. Forked from Selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation, it's useful for tagging, contact lists, country selectors, etc.
The npm package tom-select receives a total of 20,291 weekly downloads. As such, tom-select popularity was classified as popular.
We found that tom-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.