ReactSelectDropdown
ReactSelectDropdown is a JS library which is dropdwon with all the features of select element given by HTML.
Why we need this module
When we use default select of HTML we are not able to modify its CSS completely specially for option menu but this module gives you the feature of select and allow you to set CSS in any way you want it to be.
Installation
npm install --save reactjs-selectdropdown
Usage
; <SelectDropdown data=data labelToShow='labelCheck' getData={ console } height='200' arrowColor='#57a61e'/> const data = labelCheck: 'A' value: 1 labelCheck: 'B' value: 2 labelCheck: 'C' value: 3 labelCheck: 'D' value: 4 labelCheck: 'E' value: 5 labelCheck: 'F' value: 6 or 'A''B''C''D''E''F'
Props
className: PropTypesstring labelToShow: PropTypesstring getData: PropTypesfuncisRequired data: PropTypesarrayisRequired height: PropTypesstring arrowColor: PropTypesstring
DefaultProps
className: '' labelToShow: 'label' height: 'auto' arrowColor: '#000'
Props Explanation
className: Pass a dynamic will apply the css to the wrapper labelToShow: If you are passing array of object then pass the key of the object you want to render getData: This is
License
ISC