0.1.23 • Published 4 years ago

react-dropdown-simple v0.1.23

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

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago