Custom select built with Vue.js and Tailwind.css
npm install vue-awescode-selectCustom select built with Vue.js and Tailwind.css
npm install and npm run serve npm run test:unit
npm install vue-awescode-select
`Usage
Inside your component
`js
v-model="value"
:options="options"
placeholder="Select"
/>
`If you are using Nuxt.js you need to use transpile for this package
Inside
nuxt.config.js`js
export default {
// Your other settings
build: {
transpile: ['vue-awescode-select']
}
}
`API
$3
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| options | Array | true | - | Dropdown options for select. Each object must contain next keys:
`text` and `value`` || Event | Returns | Description |
|-------------------------------|-----------------|------------------------------------------|
| @change | Object | Indicates that the value has been changed. NB, this will fire when a default value has been selected when the component is mounted. Use the input event if you want the value the user has selected.|
| @input | Object | Indicates that the value has been changed by the user.|