All Projects → RadKod → v-dropdown-menu

RadKod / v-dropdown-menu

Licence: MIT license
Dropdown menu plugin for vuejs, supported ssr.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to v-dropdown-menu

Vue Uweb
vue 友盟统计埋点插件
Stars: ✭ 154 (+569.57%)
Mutual labels:  vue-plugin
Vue Lazy Render
A vue component for lazy rending vue component
Stars: ✭ 219 (+852.17%)
Mutual labels:  vue-plugin
react-native-autocomplete-dropdown
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
Stars: ✭ 87 (+278.26%)
Mutual labels:  dropdown-menu
Vue Chimera
VueJS reactive RESTful API
Stars: ✭ 160 (+595.65%)
Mutual labels:  vue-plugin
Vuent
🎨 Vue.js components implementing Microsoft Fluent Design
Stars: ✭ 207 (+800%)
Mutual labels:  vue-plugin
vue-marquee-roll-up
MarqueeUp向上轮播的跑马灯/RollNotice向上走的滚动公告/
Stars: ✭ 30 (+30.43%)
Mutual labels:  vue-plugin
Vue Analytics
Google Analytics plugin for Vue
Stars: ✭ 1,780 (+7639.13%)
Mutual labels:  vue-plugin
generator-vue-plugin
Yeoman generator generating vue plugin 🚀
Stars: ✭ 29 (+26.09%)
Mutual labels:  vue-plugin
Vue Emoji Picker
Very simple, yet powerful, vue emoji picker 🎉🔥🚀
Stars: ✭ 218 (+847.83%)
Mutual labels:  vue-plugin
vue-inview
vue-plugin for in-view package
Stars: ✭ 100 (+334.78%)
Mutual labels:  vue-plugin
Vue Warehouse
A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js.
Stars: ✭ 161 (+600%)
Mutual labels:  vue-plugin
Vue Swal
A small wrapper for integrating SweetAlert to Vuejs
Stars: ✭ 177 (+669.57%)
Mutual labels:  vue-plugin
vue-swimlane
A Text Swimlane plugin for Vue.js
Stars: ✭ 71 (+208.7%)
Mutual labels:  vue-plugin
Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (+9095.65%)
Mutual labels:  vue-plugin
vue-svg-inline-plugin
Vue plugin for inline replacement of SVG images with actual content of SVG files.
Stars: ✭ 30 (+30.43%)
Mutual labels:  vue-plugin
Vue Awesome Swiper
🏆 Swiper component for @vuejs
Stars: ✭ 12,072 (+52386.96%)
Mutual labels:  vue-plugin
Vue
Make Vue greater with RxTS.
Stars: ✭ 228 (+891.3%)
Mutual labels:  vue-plugin
vue-bus
Tiny simple central event bus plugin for Vue.js
Stars: ✭ 50 (+117.39%)
Mutual labels:  vue-plugin
vue-ray
Debug your Vue 2 & 3 code with Ray to fix problems faster
Stars: ✭ 48 (+108.7%)
Mutual labels:  vue-plugin
vue-jss-plugin
JSS plugin implementation for Vue.js
Stars: ✭ 24 (+4.35%)
Mutual labels:  vue-plugin

v-dropdown-menu

Customizable dropdown menu plugin for vuejs. SSR supported.

v-dropdown-menu

Demo: https://v-dropdown-menu.now.sh

🟥 NPM: https://www.npmjs.com/package/v-dropdown-menu

Github: https://github.com/RadKod/v-dropdown-menu

Installation

$ npm install v-dropdown-menu --save

Global Register

    import Vue from 'vue'
    import DropdownMenu from 'v-dropdown-menu'
    import 'v-dropdown-menu/dist/v-dropdown-menu.css' // Base style, required.
    
    Vue.use(DropdownMenu)  

Local Register

    import DropdownMenu from 'v-dropdown-menu'
    import 'v-dropdown-menu/dist/v-dropdown-menu.css' // Base style, required.
    
    export default {
      components: {
        DropdownMenu
      }
    }

Via CDN

    <script src="https://unpkg.com/v-dropdown-menu"></script>
    <script>
	  new  Vue({
	    el: "#app"
	  });
	  Vue.use(DropdownMenu);
    </script>

Usage

    <dropdown-menu>
      <button slot="trigger">Open Dropdown</button>
      <div slot="header">Dropdown Header</div>
      <ul slot="body">
        <li v-for="i in 6" :key="i"><a href="">Item {{i}}</a></li>
      </ul>
      <div slot="footer">Dropdown Footer</div>
    </dropdown-menu>

Props

Name Description Type Options Default
isOpen Show or hide for dropdown Boolean true , false false
mode Open variant String click , hover click
dropup Open the menu upwards Boolean true , false false
direction Menu container direction String left , right , center left
closeOnClickOutside closes dropdown menu when click outside Booelan true , false true
withDropdownCloser If there is an element in the menu with dropdown-closer attribute, clicking on it closes the menu. Boolean true , false false
containerZIndex z-index of menu container String . 994
overlay background overlay of dropdown menu (only for click mode) Boolean true , false true
overlayBgColor background-color of overlay String ex: rgba(1, 35, 83, 0.8) rgba(0, 0, 0, 0.2)
overlayZIndex z-index of overlay String . 992
transition custom vue transition for menu String . default

Slots

Name Description
trigger trigger for dropdown menu
header header of menu container (optional)
body content of menu (optional)
footer footer of menu container (optional)

Events (only for click mode)

@opened="dispatchEvent"
@closed="dispatchEvent"

Author

👤 selimdoyranli


CREATED BY

RadKod

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].