You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-select-multi

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-multi

React Multiple-Select Component

1.3.3
Source
npmnpm
Version published
Weekly downloads
22
Maintainers
1
Weekly downloads
 
Created
Source

React Select Multi

npm version Build Status Coverage Status

Description

A versatile React Component providing awesome select UI components.

  • simple = basic select
  • multiple = multi-select
  • search = select with search input

State management options

  • React Component state
  • Redux

Installation

With Yarn:

yarn add react-select-multi

With NPM:

npm install react-select-multi

1. Basic Usage (SelectState): uses component state for state management

import React, { Component } from 'react';
import { SelectState } from 'react-select-multi';

class MyComponent extends Component {
  render() {
    <SelectState
      uniqueKey="select-multi-1"
      options={options}
      selected={selected}
      styles={styles}
      toggleOpen={toggleOpen}
      onCheck={onCheck}
    />
  }
}

2. Basic Usage (SelectConnected): uses Redux for state management

import React, { Component } from 'react';
import { SelectConnected } from 'react-select-multi';

class MyComponent extends Component {
  render() {
    <SelectConnected
      uniqueKey="select-multi-1"
      options={options}
      selected={selected}
      styles={styles}
      toggleOpen={toggleOpen}
      onCheck={onCheck}
    />
  }
}

Tests

yarn spec

Credits

Thanks to Lyn, JD, Mike, Anoop, and 🌳

Licence

Apache-2.0

FAQs

Package last updated on 17 Apr 2017

Did you know?

Socket

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.

Install

Related posts