vue-select
Selecting made simple
Provides a simple Vue component for providing suggestions from a dropdown.
Demo
Installing
Install via npm
npm install -d @rmp135/vue-select
Or via Yarn
yarn add dev @rmp135/vue-select
Usage
Add as a Vue component.
import VueSelect from '@rmp135/vue-select'
...
data: {
value: 'item2',
suggestions: ['item1', 'item2', 'item3']
},
components: {
VueSelect
}
...
Add to the template and provide the relevant props.
<vue-select :suggestions="suggestions" v-model="value"></vue-select>