sbx-react-select
v0.0.8
Published
sbx-react-select
Downloads
64
Readme
SBX React Select
sbx i --save sbx-react-select
import Select from 'sbx-react-select';
<Searchable
value="" //if value is not item of options array, it would be ignored on mount
placeholder="Search" // by default "Search"
notFoundText="No result found" // by default "No result found"
options={[{
value: '',
label: 'All'
}, {
value: 'popular',
label: 'Popular
}]}
onSelect={option => {
console.log(option); // as example - {value: '', label: 'All'}
}}
listMaxHeight={200} //by default 140
/>