This is a styled, custom <select>
input Vue component. If you select an option, it will emit a event to its parent Vue component.
It is based on Vue 2, MaintainableCSS and the Y7K Style Plate. Detailed information in the Y7K Showroom.
npm install @y7k/component-dropdown --save
import dropdown from '@y7k/component-dropdown';
import dropdown from '@y7k/component-dropdown';
dropdown.registerGlobally();
import { Dropdown } from '@y7k/component-dropdown';
// Vue component example
export default {
components: {
Dropdown,
},
}
In your main.scss file
@import '@y7k/filterable-list/src/scss/dropdown';
// If you don't set "node_modules" as a webpack include path:
@import '../[path]/../node_modules/@y7k/component-dropdown/src/scss/dropdown';
Please have a look at the usage documentation in the Y7K Showroom.