UNPKG

@gits-id/multi-select

Version:

Vue Multi Select Component

63 lines (45 loc) 829 B
# Multi Select Vue Multi Select Component. ## Installation npm ``` npm i @gits-id/multi-select ``` yarn ``` yarn add @gits-id/multi-select ``` pnpm ``` pnpm i @gits-id/multi-select ``` ## Usage ```vue <script setup lang="ts"> import {ref} from 'vue'; import VMultiSelect from '@gits-id/multi-select'; import '@gits-id/multi-select/dist/style.css'; const items = ref([ { text: 'Item 1', value: 1, }, { text: 'Item 2', value: 2, }, { text: 'Item 2', value: 2, }, ]); const selected = ref(); </script> <template> <VMultiSelect v-model="selected" :items="items" /> </template> ``` ## Documentation View full documentation [here](https://gits-ui.web.app/?path=/story/components-multi-select--default). ## License MIT