react-checkboxed-dropdown
v1.0.1
Published
An accessible checkboxed select box component for React 15.
Downloads
14
Maintainers
Readme
React Checkboxed Dropdown
If is select box component for React 15. With default styling it checkboxed select box for multichoice drop down, and as native for single.
Props:
| Name | Type | Description | Default | |:-----------:|:-------:|:------------------------------------------:|:----------------------------:| |multiple | boolean | is multichoice or not. | false | |showTitle | boolean | show tooltip with current value. | false | |label | string | placeholder. | "Select" | |clearText | string | clear button text. | "Remove selection" | |closeText | string | close button text. | "Select" | |changeOnClose| boolean | fire onChange, only after closing dropdown.| false | |children | array | array with options. | Required | |onChange | func | func which will call when value changed. | Required |
Arrays with options should contain items like next:
<option value=""></option>Demo
Installation
$ npm install react-checkboxed-dropdown --saveDevelopment
$ git clone [email protected]:neospyk/react-checkboxed-dropdown.git
$ npm install