UNPKG

tedir-select

Version:

Tedir Select is a Vue 3 & Web Component Custom SelectBox, ListBox, Taggable, etc.

44 lines (32 loc) 1.36 kB
# Tedir Select Tedir Select is a Custom SelectBox, Multiple ListBox, ComboBox Autocomplete, and Tags Input for Vue 3 and Web Components ## Install & Usage ```bash npm install tedir-select or yarn add tedir-select ``` Initialize it in the .vue file ```html <script setup> import { ref, reactive } from 'vue' import { SelectBox, ComboBox, ListBox, TagBox, CategoryBox } from 'tedir-select' const stateRef = ref('') const options = reactive(['Option One', 'Option Two', 'Option Three']) </script> <template> <SelectBox v-model="stateRef" :options="options" placeholder="-- Select Option --" :size="5" /> </template> ``` #### Select box in string type ![String SelectBox](examples/select-in-string-type.gif "String SelectBox") #### Select box in object type ![Object SelectBox](examples/select-in-object-type.gif "Object SelectBox") #### Select box in array of strings ![Array of Strings SelectBox](examples/select-in-array-of-strings.gif "Array of Strings SelectBox") #### Select box in array of objects ![Array of Objects SelectBox](examples/select-in-array-of-objects.gif "Array of Objects SelectBox") #### Combo box autocomplete in string and object ![ComboBox Autocomplete](examples/combobox-autocomplete.png "ComboBox Autocomplete") #### List box in string, object, array of strings and array of objects ![ListBox](examples/listbox.png "ListBox")