
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-select-multi
Advanced tools
A versatile React Component providing awesome UI select components.
State management options
With Yarn:
yarn add react-select-multi
With NPM:
npm install react-select-multi
import React, { Component } from 'react';
import { SelectState } from 'react-select-multi';
class MyComponent extends Component {
render() {
return (
<SelectState
id="category-select"
options={options}
styles={styles}
onCheck={onCheck}
selected={selected}
/>
);
}
}
import React, { Component } from 'react';
import { SelectConnected } from 'react-select-multi';
class MyComponent extends Component {
render() {
return (
<SelectConnected
id="select-multi-1"
options={options}
initialSelected={initialSelected}
styles={styles}
selected={selected}
/>
);
}
}
Prop | Type | Default | Description |
---|---|---|---|
id | string | R | Unique identifier for the component |
isMultipleSelect | boolean | false | Enable multiple options to be selected |
isSearchable | boolean | false | Enable search input for options |
label | string | '' | Label for component (above MultiSelect) |
placeholder | string | '' | Placeholder for control bar |
options | array | R | Options for MultiSelect |
styles | object | ** | CSS class names for MultiSelect |
Prop | Type | Default | Description |
---|---|---|---|
selected | array | [] | Options that are selected; keep this updated (in combination with onCheck ) in order for selected options to be updated |
onCheck | func | R | Callback, invoked after an option is clicked, onCheck(option.tag, isMultipleSelect) |
Prop | Type | Default | Description |
---|---|---|---|
initialSelected | array | [] | Options to be pre-selected |
Default classNames:
styles: {
wrapper: 'rsm-wrapper',
label: 'rsm-label',
controlContainer: 'rsm-control__container',
controlPlaceholder: 'rsm-control__placeholder',
search: 'rsm-search',
expandIcon: 'rsm-arrow-down',
collapseIcon: 'rsm-arrow-up',
optionContainer: 'rsm-option__container',
optionBar: 'rsm-option__bar',
optionCheckbox: 'rsm-option__checkbox',
};
yarn flow
yarn spec
yarn coverage
yarn lint
Thanks to Lyn, JD, Mike, Anoop, and 🌳
FAQs
React Select Multi – Component Library for UI Select Elements
The npm package react-select-multi receives a total of 17 weekly downloads. As such, react-select-multi popularity was classified as not popular.
We found that react-select-multi 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.