
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-dropdown-multiselect
Advanced tools
This is a fork of react-dropdown
by fraserxu, so huge thanks to them!
I just needed multiselect for a project and forked,
so since I don't expect anyone else to really use this,
I'm not going to spend a lot of time rewriting the docs.
What follows is basically just react-dropdown's README after
a s/react-dropdown/\0-multiselect/g
, so things are bound not
to be accurate AT ALL.
Might rewrite it at some point if I feel like it.
Simple Dropdown component for React, inspired by react-select
$ npm install react-dropdown-multiselect --save
If you want to support React version under v0.13, use react-dropdown@v0.6.1
'use strict';
import React from 'react';
import Dropdown from '../';
class App extends React.Component {
constructor() {
this.state = {
selected: { value: 'two', label: 'Two'}
}
}
_onSelect(option) {
console.log('You selected ', option.label)
this.setState({selected: option})
}
render() {
const options = [
{ value: 'one', label: 'One' },
{ value: 'two', label: 'Two' },
{
type: 'group', name: 'group1', items: [
{ value: 'three', label: 'Three' },
{ value: 'four', label: 'Four' }
]
},
{
type: 'group', name: 'group2', items: [
{ value: 'five', label: 'Five' },
{ value: 'six', label: 'Six' }
]
}
]
let defaultOption = this.state.selected
return (
<Dropdown options={options} onChange={this._onSelect.bind(this)} value={defaultOption} placeholder="Select an option" />
)
}
}
React.render(<App />, document.body)
Run example
$ cd example && npm install && npm run watch
MIT | Build for CSViz project @Wiredcraft
FAQs
React multiselect dropdown component
The npm package react-dropdown-multiselect receives a total of 65 weekly downloads. As such, react-dropdown-multiselect popularity was classified as not popular.
We found that react-dropdown-multiselect 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.