@reciprocity/multiselect-custom-el-poc
v0.6.0
Published
A select component with multi value support created for Micro frontends POC
Downloads
1
Keywords
Readme
Multiselect
A select component with support multi value selection, auto-complete, etc.
Based on Vue Multiselect. Check out the documentation for more options.
Installation
npm install @reciprocity/multiselect
or
yarn add @reciprocity/multiselect
Usage
This component is meant to be used as an ES module, so you can import it using the ES6 import
syntax.
After importing you can just register it with Vue. Eg:
app.vue
<template>
<multiselect v-model='value' :options='options'>Click me!</multiselect>
</template>
<script>
import ZenButton from '@reciprocity/button';
export default Vue.extend({
name: 'My App',
data() {
return {
value: null,
options: ['Argentina', 'Slovenia', 'United States']
}
},
components: {
Multiselect
}
};
</script>