0.1.23 • Published 6 years ago

react-dropdown-simple v0.1.23

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Installation

react-dropdown-simple

$ npm i react-dropdown-simple --save

@import '~react-dropdown-simple/dist/main.css';

Usage

options = [ {name : 'text_1',value : 1}, {name : 'text_2',value : 2}, ...]

change = value => this.setState({ Your_State : value });

Mount

<DropDown placeholder="Your_Placeholder" list={options} onSelect={this.change}></DropDown>

Props

PropTypeDescription
list (required)object[]List with the following keys:name, value.
onSelect (required)funcSelecting value.
placeholderstringPlaceholder shown where there are no selected values.
0.1.21

6 years ago

0.1.22

6 years ago

0.1.23

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.16

6 years ago

0.1.17

6 years ago

0.1.15

6 years ago

0.1.13

6 years ago

0.1.11

6 years ago

0.1.9

6 years ago

0.1.7

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago