search-multiple-select

1.0.3 • Public • Published

search-multiple-select

searchable multiple select react component

NPM JavaScript Style Guide

Install

npm install --save search-multiple-select

Desktop Demo:

Demo

Usage

import React, { Component } from 'react'

import MultipleSelect from 'search-multiple-select'
import 'search-multiple-select/dist/index.css'

class Example extends Component {
// the callback. Use a better name
   const getOptionsData = (data) => { 
    console.log(data); // print option data - to test
  };

  render() {
    return <MultipleSelect options={['']} getOptionsData={getOptionsData}/>
  }
}

Props

Property Type Default Description
options Array [''] Array of string - Options to show
getOptionsData Function () => {} return option data

License

MIT © Nazeh-Taha

Readme

Keywords

none

Package Sidebar

Install

npm i search-multiple-select

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

29.4 kB

Total Files

7

Last publish

Collaborators

  • nazeh-taha