Quick Start

Install

npm i vue-hamburger-button

Install (without npm)

Clone the Git repository of this library and link it.

git clone https://github.com/mhgbrown/vue-hamburger-button.git
cd vue-hamburger-button
npm install
npm run build
npm link

In your client project root folder:

npm link vue-hamburger-button

Use the library

import Vue from 'vue'
import * as VueHamburgerButton from 'vue-hamburger-button'

Vue.use(VueHamburgerButton);

No Conflict

All components will be installed with no prefix by default, you can add any prefix to them to avoid conflicts with other libs if needed.

For example:

Vue.use(VueHamburgerButton, { prefix: 'abc' });

Results in:

  • Components such as <hamburger-button> becomes <abc-hamburger-button>