@y7k/component-dropdown

1.0.10 • Public • Published

npm npm

Y7K Component: Dropdown

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.

Component

Installation

Install npm package
npm install @y7k/component-dropdown --save
Include in your project
import dropdown from '@y7k/component-dropdown';
Variant 1: Register components globally:
import dropdown from '@y7k/component-dropdown';
dropdown.registerGlobally();
Variant 2: Use components directly:
import { Dropdown } from '@y7k/component-dropdown';

// Vue component example
export default {

    components: {
        Dropdown,
    },
}
Include styles

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';

Documentation

Please have a look at the usage documentation in the Y7K Showroom.

Readme

Keywords

none

Package Sidebar

Install

npm i @y7k/component-dropdown

Weekly Downloads

2

Version

1.0.10

License

MIT

Unpacked Size

29 kB

Total Files

11

Last publish

Collaborators

  • exophunk
  • romankuepper