├── .editorconfig ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── bili.config.js ├── examples ├── App.vue └── index.js ├── package.json ├── src ├── BurgerButton.styl └── BurgerButton.vue └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # Settings for editors and IDEs. 2 | # References at https://editorconfig.org/. 3 | 4 | root = true 5 | 6 | # Settings for any file. 7 | [*] 8 | charset = utf-8 9 | end_of_line = lf 10 | indent_size = 2 11 | indent_style = space 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat as text when is possible and ensure Unix line-endings. 2 | * text=auto eol=lf 3 | 4 | # Ignore differences on Yarn's lockfile. 5 | # Since version 1.0, Yarn automatically handle merge conflicts. 6 | yarn.lock -diff 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Finder settings files (Mac). 2 | .DS_Store 3 | 4 | # Node.js modules. 5 | node_modules/ 6 | 7 | # NPM's lockfile. 8 | # We're using Yarn and it provides it's own lockfile. 9 | npm-lockfile.json 10 | 11 | # Log files. 12 | *.log 13 | *.log.* 14 | 15 | # Distribution sources dir. 16 | dist/ 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright © 2018 Vitor Luiz Cavalcanti 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-burguer-button 2 | 3 | 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). 4 | 5 | BurgerButton GIF 11 | 12 | ## Installation 13 | 14 | This module is published under NPM registry, so you can install from any package manager. 15 | 16 | ```sh 17 | npm install vue-burger-button --save 18 | 19 | # Use the command bellow for Yarn. 20 | yarn add vue-burger-button 21 | ``` 22 | 23 | ## Usage 24 | 25 | Import the BurgerButton component and its CSS. 26 | 27 | ```vue 28 | 34 | 35 | 43 | 44 |