Skip to content

ihor/react-select-bootstrap3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bootstrap styles for react-select component. Feel free to send PRs with improvements.

Example

Example

Installation

npm i react-select-bootstrap3 --save

Usage

import Select from 'react-select';
import { styles } from 'react-select-bootstrap3';

const options = [
    {value: 'chocolate', label: 'Chocolate'},
    {value: 'strawberry', label: 'Strawberry'},
    {value: 'vanilla', label: 'Vanilla'},
];

const select = (
    <Select
        options={options}
        styles={styles}
    />
);