
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
dropdown-select
Advanced tools
A group of dropdown select controls for React JS.
Live Demo: https://ganapathy888.github.io/dropdown-select/
Add package using Yarn or Npm.
yarn add dropdown-select
npm install dropdown-select
Import dropdown select controls and its styles into your component.
import { SimpleSelect, AsyncSelect } from 'dropdown-select';
import 'dropdown-select/dist/css/dropdown-select.css';
Alternatively, you can import the styles form .scss files as follows:
@import "~dropdown-select/dist/css/dropdown-select.css";
Simple select control with array of string options:
<SimpleSelect
options={['option1', 'option2', ...]}
/>
Simple select control with array of object options:
<SimpleSelect
options={[{}, {}]}
labelKey="nameKey"
valueKey="valueKey"
/>
Async Select: (Here the fetchOptions accepts a function that returns Promise)
<AsyncSelect
fetchOptions={this.fetchOptions}
labelKey="nameKey"
valueKey="valueKey"
/>
Using simple select as custom component in redux-form
renderSelectField(props) {
const { meta: { touched, error } } = props;
return (
<div>
<SimpleSelect
{...props.input}
options={props.options}
labelKey="name"
valueKey="id"
/>
{touched && error && <span className="error">{error}</span>}
</div>
);
}
render() {
const { handleSubmit } = this.props
return (
<form onSubmit={handleSubmit}>
<Field
name="name"
options={options}
component={this.renderSelectField}
/>
<button className="btn btn-primary mt-2" type="submit">Submit</button>
</form>
);
}
For advanced use cases and multiselect control, please refer react-select
FAQs
A Dropdown Select Control for React JS
The npm package dropdown-select receives a total of 46 weekly downloads. As such, dropdown-select popularity was classified as not popular.
We found that dropdown-select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.