search-multiple-select
searchable multiple select react component
Install
npm install --save search-multiple-select
Desktop Demo:
Usage
import React, { Component } from 'react'
import MultipleSelect from 'search-multiple-select'
import 'search-multiple-select/dist/index.css'
class Example extends Component {
const getOptionsData = (data) => {
console.log(data);
};
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