Universal Dropdown Menu Component For Vue

Install & Download:

# Yarn
$ yarn add @innologica/vue-dropdown-menu
$ npm i @innologica/vue-dropdown-menu --save


A universal dropdown menu component that can be attached to any element on the app.

How to use it:

1. Import the dropdown menu component.

import DropdownMenu from ‘@innologica/vue-dropdown-menu’

2. Bind a dropdown menu to an element as follows:

  <button class="dropdown-toggle">
    Click Or Hover Me
  <div slot="dropdown">
    <a class="dropdown-item" href="#">Menu Item 1</a>
    <a class="dropdown-item" href="#">Menu Item 2</a>
    <a class="dropdown-item" href="#">Menu Item 3</a>

3. Default props.

// control the state of the dropdown
value: Boolean,
// show the dropdown menu on the right side
right: Boolean,
// display the dropdown menu on hover
hover: Boolean,
hover_time: {
  type: Number,
  default: 100
hover_timeout: {
  type: Number,
  default: 500
// custom styles
styles: {
  type: Object,
  default () {
    return {}
// stay open until clicked outside
interactive: { 
  type: Boolean,
  default: false,
// transition effect
transition: {
  type: String,
  default: '',
// close on click outside
closeOnClickOutside: {
  type: Boolean,
  default: true


Universal Dropdown Menu Component For Vue


v0.1.4 (10/04/2020)

  • add closeOnClickOutside prop

Add Comment