# vue-hamburgers

> [![](https://img.shields.io/npm/v/vue-hamburgers.svg?style=flat-square&color=cb3837&logo=npm&logoColor=ffffff)](https://www.npmjs.com/package/vue-hamburgers) [![](https://img.shields.io/github/license/ewilan-riviere/vuepress-theme-useweb.svg?style=flat-sq

Latest version **1.1.2** (published 2020-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-hamburgers
pnpm add vue-hamburgers
yarn add vue-hamburgers
bun add vue-hamburgers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2020-09-28 |
| First published | 2020-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ewilan 'EwieFairy' Rivière |
| Maintainers | ewiefairy |
| Keywords | vue, hamburger, nuxt, menu |

## Links

- npm: https://www.npmjs.com/package/vue-hamburgers
- Repository: https://github.com/ewilan-riviere/hamburgers-vue
- Issues: https://github.com/ewilan-riviere/hamburgers-vue/issues
- npm.io page: https://npm.io/package/vue-hamburgers

## Dependencies (1)

- [hamburgers](https://npm.io/package/hamburgers.md) ^1.1.3

## Recent versions

- 1.1.2 (latest) — 2020-09-28
- 1.1.1 — 2020-09-28
- 1.1.0 — 2020-09-28
- 1.0.2 — 2020-09-28
- 1.0.1 — 2020-09-28
- 1.0.0 — 2020-09-28

## README

# **Vue Hamburgers**

[![](https://img.shields.io/npm/v/vue-hamburgers.svg?style=flat-square&color=cb3837&logo=npm&logoColor=ffffff)](https://www.npmjs.com/package/vue-hamburgers)
[![](https://img.shields.io/github/license/ewilan-riviere/vuepress-theme-useweb.svg?style=flat-square&color=f05032&logo=git&logoColor=ffffff)](https://github.com/ewilan-riviere/vue-hamburgers/blob/master/LICENSE)

[![node.js](https://img.shields.io/static/v1?label=Node.js&message=v12.16&color=339933&style=flat-square&logo=node.js&logoColor=ffffff)](https://nodejs.org/en/)
[![vue.js](https://img.shields.io/static/v1?label=Vue.js&message=v2.6&color=4FC08D&style=flat-square&logo=vue.js&logoColor=ffffff)](https://vuejs.org/)

Display a burger for menu as component, fork from [github.com/jonsuh/hamburgers](https://github.com/jonsuh/hamburgers), you can choose hamburger animation with prop `type`. Check [jonsuh.com/hamburgers](https://jonsuh.com/hamburgers/) for examples.

## **Documentation**

Install it with Yarn or NPM

```bash
yarn add -vue-hamburgers
```

**OR**

```bash
npm i vue-hamburgers --save
```

Import it, ES6 way, in `main.js` / `app.js` file

```js
import hamburger from 'vue-hamburgers'

Vue.use(hamburger)
```

### **For Nuxt.js**

Create a plugin like `plugins/vue-hamburgers.js`

```js
import Vue from 'vue'
import hamburger from 'vue-hamburgers'

Vue.use(hamburger)
```

In `nuxt.config.js` import plugin

```js
export default {
  // ...
  plugins: [
    { src: '@/plugins/vue-hamburgers', mode: 'client' },
  ],
  // ...
}
```

In any .vue component import in with `<client-only>`

```vue
<template>
  <client-only>
    <hamburger />
  </client-only>
</template>
```

### *Usage*

Use it in a `.vue` file

```vue
<template>
  <div>
    <hamburger />
  </div>
</template>
```

Define type with prop `type`

```html
<div>
  <hamburger type="3dx" />
</div>
```

### *API*

```vue
<template>
  <hamburger
    type="spring"
    :width="30"
    :height="3"
    :spacing="0.8"
    color="red"
  />
</template>
```

Check all available type on [jonsuh.com/hamburgers](https://jonsuh.com/hamburgers/), use it in lowercase like this `type="arrow"`

| Props        | Type    | Default | Describe                                                                   |
|--------------|---------|---------|----------------------------------------------------------------------------|
| type          | String  | 'spring'      | Type of hamburger animation |
| width | Number / String | 40 | Define width of hamburger |
| height | Number / String | 4 | Define height of bars of hamburger |
| spacing | Number / String | 1 | Define spacing between bars of hamburger, reduce with '0.8' or increase with '1.2' |
| color | String | #000000 | Set color with hexa code |

## **License**

**MIT** &copy; [**@jonsuh**](https://github.com/jonsuh), [**@ewilan-riviere**](https://github.com/ewilan-riviere)

---
_Source: https://npm.io/package/vue-hamburgers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
