
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
multiselection-input
Advanced tools
make multiple selection in the selectbox
npm install --save multiselection-input
import React, { Component } from 'react'
import Multiselection from 'multiselection'
import 'multiselection/dist/index.css'
class Example extends Component {
state = {
text: ["Create 😄", "React 😄", "Library 😄", "Example 😄"],
result: []
}
handleValue = (result) => {
this.setState({result})
}
render() {
const {text, retour} = this.state;
return (
<>
<Multiselection
width={400}
data={text}
handleValue={this.handleValue}
border={'solid 2px red'}
margin={'15%'}
/>
<ul>
<h4>Selected element</h4>
{result.map(item =>
<li key={item}>{item}</li>
)}
</ul>
</>
}
}
data : is a mandatory prop typeof list of string
handleValue : is a mandatory prop typeof func for retrieving the result of the select
width : is a optional prop typeof number border : is a optional prop typeof string for border style margin : is a optional prop typeof string for margin of the select
MIT © elsamanang
FAQs
make multiple selection in the selectbox
The npm package multiselection-input receives a total of 2 weekly downloads. As such, multiselection-input popularity was classified as not popular.
We found that multiselection-input 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.