react-select-picker
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

React-Select

A Select control built for React from Bootstrap Select.

Description

Demo

Single Select

import SelectPicker from "react-select-picker";
 
<SelectPicker
    className="form-control"
    title="Select Cities"
    disabled={this.props.isDisabled}
    defaultValue={this.props.selectedCityIds}
    onChange={this.onChange.bind(this)}
>
    {options}
</SelectPicker>

Multiple Select

import SelectPicker from "react-select-picker";
 
<SelectPicker
    className="form-control"
    title="Select Cities"
    multiple
    disabled={this.props.isDisabled}
    defaultValue={this.props.selectedCityIds}
    onChange={this.onChange.bind(this)}
>
    {options}
</SelectPicker>

Demo repository

Run

npm install
npm install -g gulp
npm install -g tsd

tds reinstall -so
gulp serve

Tips

https://gist.github.com/coolaj86/1318304

Package Sidebar

Install

npm i react-select-picker

Weekly Downloads

35

Version

0.0.7

License

ISC

Last publish

Collaborators

  • lovedota