Skip to content
A dropdown component for Vue 2.x.
Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

Vue Dropdown

A dropdown component for Vue 2.x.

Install

npm install @codinglabs/vue-dropdown --save
import Dropdown from '@codinglabs/vue-dropdown';

export default {
  components: {
    Dropdown
  }
  // ...
}

Usage

<dropdown menu-classes="md:w-48">
    <template slot="button">
        <div class="flex items-center">
            <div class="mr-2">Menu</div>
            <i class="fas fa-caret-down"></i>
        </div>
    </template>

    <template slot="menu">
        <li><a href="#" class="block p-4">Settings</a></li>
        <li><a href="#" class="block p-4">Logout</a></li>
    </template>
</dropdown>

About Coding Labs

Coding Labs is a web app development agency based on the Gold Coast, Australia.

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.