All Projects → VitorLuizC → vue-burger-button

VitorLuizC / vue-burger-button

Licence: MIT license
🍔 vue-burger-button is a functional component, which is faster than a regular component, and is pretty small (JS min+gzip is lower than 700b and CSS min+gzip is lower than 400b).

Programming Languages

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

Projects that are alternatives of or similar to vue-burger-button

Pygame Menu
Menu for pygame. Simple, lightweight and easy to use
Stars: ✭ 244 (+495.12%)
Mutual labels:  button, menu
Vue Float Menu
🎈Customizable floating menu for Vue
Stars: ✭ 252 (+514.63%)
Mutual labels:  menu, vue-component
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-58.54%)
Mutual labels:  menu, hamburger
Dragfloatingactionbutton
一个可以随处拖曳FloatingActionButton,边缘自动吸附,可设置按钮悬浮透明度,拖曳避免阻挡界面视图无法查看。
Stars: ✭ 258 (+529.27%)
Mutual labels:  button, menu
Ftpopovermenu
FTPopOverMenu is a pop over menu for iOS which is maybe the easiest one to use. Supports both portrait and landscape. It can show from any UIView, any UIBarButtonItem and any CGRect.
Stars: ✭ 988 (+2309.76%)
Mutual labels:  button, menu
Vue Js Toggle Button
🍥 Vue.js 2 toggle / switch button - simple, pretty, customizable
Stars: ✭ 836 (+1939.02%)
Mutual labels:  button, vue-component
Hamburgers
Tasty CSS-animated Hamburgers
Stars: ✭ 6,522 (+15807.32%)
Mutual labels:  menu, hamburger
React Planet
A react lib for building circular menus in a very easy and handy way.
Stars: ✭ 83 (+102.44%)
Mutual labels:  button, menu
ml-stack-nav
Customizable, responsive, accessible, easy-to-use multi-level stack navigation menu with slide effect.
Stars: ✭ 20 (-51.22%)
Mutual labels:  hamburger-menu, menu
vue-list-picker
Just a simple list picker component made with Vue.js (works with Vue 2 & 3)
Stars: ✭ 14 (-65.85%)
Mutual labels:  vue-component
responsive-menus
Genesis Responsive Menus
Stars: ✭ 26 (-36.59%)
Mutual labels:  menu
vue-json-tree
Vue component that renders JSON data in a collapsible tree structure.
Stars: ✭ 48 (+17.07%)
Mutual labels:  vue-component
restaurant-bot
This is an Android application that can be used for providing a digital menu for a restaurant.
Stars: ✭ 42 (+2.44%)
Mutual labels:  menu
vue-loading-button
👇 Vue button with slideout loading indicator
Stars: ✭ 39 (-4.88%)
Mutual labels:  button
hrms
使用SpringBoot开发的人力资源管理系统 Human Resource Manage System
Stars: ✭ 47 (+14.63%)
Mutual labels:  poi
menutray
An application menu through a GTK+ tray status icon.
Stars: ✭ 62 (+51.22%)
Mutual labels:  menu
impromptu.nvim
Create prompts fast and easy
Stars: ✭ 39 (-4.88%)
Mutual labels:  menu
ConsoleMenu
A simple, highly customizable, DOS-like console menu
Stars: ✭ 27 (-34.15%)
Mutual labels:  menu
json2kml
Python scripts to export Google Maps saved/starred places to KML, CSV, Sygic
Stars: ✭ 42 (+2.44%)
Mutual labels:  poi
flutter fab dialer
Floating action button dialer
Stars: ✭ 66 (+60.98%)
Mutual labels:  menu

vue-burguer-button

A Vue burger button as functional component, which is faster than a regular component, and is pretty small (JS min+gzip is lower than 700b and CSS min+gzip is lower than 400b).

BurgerButton GIF

Installation

This module is published under NPM registry, so you can install from any package manager.

npm install vue-burger-button --save

# Use the command bellow for Yarn.
yarn add vue-burger-button

Usage

Import the BurgerButton component and its CSS.

<template>
  <burger-button
    :active="isActive"
    @click="isActive = !isActive"
  />
</template>

<script>
  import BurgerButton from 'vue-burger-button';

  export default {
    components: { BurgerButton },
    data: () => ({ isActive: false })
  };
</script>

<style src="vue-burger-button/dist/vue-burger-button.css" />

Usage as global component

If you need <burger-button /> available everywhere, you can register it as a global component and don't forget to import its CSS.

import 'vue-burger-button/dist/vue-burger-button.css';
import Vue from 'vue';
import BurgerButton from 'vue-burger-button';

Vue.component('burger-button', BurgerButton);

Usage from CDN

You can import burger button UMD module and CSS from Unpkg.

<!-- Import vue-burger-button CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/vue-burger-button.css" />

<!-- Import vue-burger-button UMD bundle -->
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>

<script>
  /**
   * vue-burger-button is available through VueBurgerButton.
   */
  console.dir(VueBurgerButton);

  /**
   * Vue.use will add burger button as global component.
   */
  Vue.component('burger-button', VueBurgerButton);
</script>

Props

You can customize your burger button using props.

<template>
  <burger-button
    :active="isActive"
    :bar-color="isActive ? 'red' : 'black'"
    :bar-height="15"
    :bar-width="120"
    @click="isActive = !isActive"
  />
</template>
Name Type Default Description
active Boolean false If true it switches to a close button.
barColor String '#000000' Change the bars colors.
barHeight Number 10 Change the bars heights.
barWidth Number 80 Change the bars widths.

Events

The burger button emits every <button /> events. So, you can use @click, @mouseover etc.

License

Released under MIT License.

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].