2.0.2 • Published 4 years ago

react-drop-down-searcher v2.0.2

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

React-drop-down-searcher

Customisable dropdown select for react

NPM

🔺 Whats New

  • Customizable selected dropdown color added
  • Customizable tag color added

Features

  • Configurable via props
  • Plugin is supportable for mouse outside click
  • Auto position
  • Small bundle size

Installation

npm i react-drop-down-searcher

Website

Demo Npm Link

Usage

Import :

import DropDown from "react-drop-down-searcher";

and use as

<DropDown list={list} selectedList={selectedItem} toggleItem={val => toggleItem(val)} handleInputChange= {(val)=>handleInputChange(val)}/>

API

Component Props

PropTypeDefaultDescription
listArrayObject[]These array values will show in the dropdown
placeholderStringSearchInput field placeholder
searchKeyStringEmptySearch Key for filter dropdown
isSingleboolfalseif true, only one value can be selected from dropdown otherwise multi value can be selected dropdown
labelNameStringtitleThis value used to show which value is from the object in dropdown
selectedlabelNameStringtitleFrom which value from the object need to show in the taginput
selectedListArrayOBject[]If values set, it will show those values as tag input
tagColorString#0074D9This color is used to set the background color to selected dropdown value in the text input
selectedDropdownColorString#0074D9This color is used to set the background color to selected index in dropdown

Callback props

by using render props to override components some of the functionality will have to be >handled manually with a help of internal props, states and methods exposed

PropTypeDefaultDescription
toggleItemfuncThis will return the selected values from dropdwon
inputChangedfuncWhen type something from the textfiled it will trigger

Screenshots

  • Main Image alt text
  • Single Dropdown alt text
  • Multi Dropdown alt text

License MIT

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.15

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago