1.2.6 • Published 2 years ago

multiselectbar v1.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Multiselect Dropdown Bar

Description

A React component which provides multi select functionality with various features like Easy customization, search option, Avatar icon with Dynamic colors , Responsive Design and Lightweight library.

Multiselect

🏳️‍🌈 Getting Started

1. Installation 🔧

npm install multiselectbar

2. Basic Usage 📑

import MultiSelectBar from "multiselectbar";

const optionsDB = [
  { name: "Amit Kumar", isSelected: false },
  { name: "Arun Sharma", isSelected: false },
  { name: "Vikas Kumar", isSelected: false },
  { name: "Manoj Singh", isSelected: false },
  { name: "Pradeep Verma", isSelected: false },
  { name: "Sarthak Sharma", isSelected: false },
];

const colorsDB = ["#0d46b7", "#d9004c", "#013220", "#ffc40c", "#008b8b"];

<MultiSelectBar
  options={optionsDB} // Passing Options in the props to display in the dropdown
  colors={colorsDB} // Passing Colors in the props to display in dropdown Avatar
  borderColor="#0d46b7"
  tagColor="#dbd8d8"
  tagTextColor="black"
  tagHoverColor="#3ba2ff"
  tagHoverTextColor="white"
  tagTextSize="20px"
  tagCrossSize="18px"
  placeholder="Search here..."
  placeholderSize="18px"
  listTextSize="21px"
  listHoverColor="#147fdc"
  dropdownHeight="280px"
  dropdownMarginTop="1px"
  inputCrossSize="18px"
  inputDropSize="23px"
/>;

3. Props 💬

PropTypeDefaultDescription
optionsarray[]Dropdown options
colorsarray[]Avatar Icons Colors
borderColorstring#0d46b7CSS color Code to change the border color of the dropdown by default it is '#0d46b7'
borderColorstring#0d46b7CSS color Code to change the border color of the dropdown by default it is '#0d46b7'
tagColorstring#dbd8d8CSS color Code to change the background color of the selected options knowns as tag in the input bar. By default it is '#dbd8d8'
tagTextColorstring#blackCSS color Code to change the background color of the selected options Text known as tag Text in the input bar. By default it is '#black'
tagHoverColorstring#3ba2ffCSS color Code to change the background color of the selected options Tags on Hover known as tag Hover Color in the input bar. By default it is '#3ba2ff'
tagHoverTextColorstringwhiteCSS color Code to change the background color of the selected options Tags Name on Hover known as tag Hover Text Color in the input bar. By default it is 'white'
tagTextSizestring20pxCSS Props to change the text size of the selected options Tags Name known as tag Text Size in the input bar. By default it is '20px'
tagCrossSizestring18pxCSS Props to change the cross icons size of the selected options Tags known as tag Cross Size in the input bar. By default it is '18px'
placeholderstringSearch here...Props to change the placeholder text in the input bar. By default it is 'Search here...'
placeholderSizestring18pxProps to change the placeholder text size in the input bar. By default it is '18px'
listTextSizestring21pxProps to change the text size of the options visible in the dropdown bar. By default it is '21px'
listHoverColorstring#147fdcCSS Props to change the color of the text visible in the dropdown bar. By default it is '#147fdc'
dropdownHeightstring280pxProps to change the height of the dropdown bar. By default it is '280px'
dropdownMarginTopstring1pxProps to change the increase the height between the dropdown bar and input bar. By default it is '1px'
inputCrossSizestring18pxProps to change the size of the cross button visible in the input bar . By default it is '18px'
inputDropSizestring23pxProps to change the size of the dropdown button visible in the input bar . By default it is '23px'

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.0

2 years ago