1.0.0 • Published 7 years ago

minimal-select v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Minimal Select

Minimal Select is a small, reusable select component for react.

Installation

$ npm install minimal-select

Usage

import Select from 'minimal-select' // ES6
PropDescription
onSelectthe method that is fired onChange
classNameapply a css class to the select's parent div
optionsthe data that will build the options
valuePropthe value for each option
displayPropthe text that will display in each option
Select.defaultProps = {
  className: ""
};
Select.propTypes = {
  onSelect: PropTypes.func.isRequired,
  className: PropTypes.string,
  options: PropTypes.arrayOf(PropTypes.object).isRequired,
  valueProp: PropTypes.string.isRequired,
  displayProp: PropTypes.arrayOf(PropTypes.string).isRequired
};
1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago