0.1.23 • Published 5 years ago

react-dropdown-simple v0.1.23

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.22

5 years ago

0.1.23

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.16

5 years ago

0.1.17

5 years ago

0.1.15

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago