Simple Vue.js
<Select>component, styled with TailWind Css framework.
$ npm install tailwindcss-vue-selectRegister the component globaly
import Vue from 'vue'
import tailVueSelect from 'tailwindcss-vue-select'
Vue.component('tail-vue-select', tailVueSelect)...or directly in your component
...
import tailVueSelect from 'tailwindcss-vue-select'
export default {
components: {
tailVueSelect
}
...
Now you can use the component in your markup
<tail-vue-select
v-model="value"
:items="arrayOfArguments"
>
Here you can add label to your select
</tail-vue-select>items- Array of objects of the typekey: <String>, value: <Any>
- type: Array,
- default: null
isPrintKeys- Define how object will be rendered in list
- type: Boolean
- default: false -
false- Render just values -true- Render pair ofkey-value
divider- Define which character should be print between pairskey-value(ifisPrintKeysset totrue)
- type: String,
- default: '-'
isDisabled- Disable component
- type: boolean,
- default:
false
npm install
npm run serve
npm run lint
npm run test:unit