0.0.8 • Published 4 years ago

sbx-react-select v0.0.8

Weekly downloads
16
License
-
Repository
-
Last release
4 years ago

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
/>