All Projects β†’ dreambo8563 β†’ vue-simple-drawer

dreambo8563 / vue-simple-drawer

Licence: MIT license
A tiny Drawer component with bounced animation for Vue πŸšͺπŸŽπŸ—„πŸ”›

Programming Languages

HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
Makefile
30231 projects

Projects that are alternatives of or similar to vue-simple-drawer

React Native Drawer Menu
A drawer component for React Native Application.
Stars: ✭ 140 (+141.38%)
Mutual labels:  drawer
Mmenu Js
The best javascript plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.
Stars: ✭ 2,535 (+4270.69%)
Mutual labels:  drawer
Flutter slider drawer
You can make slider drawer type ui by this plugin
Stars: ✭ 152 (+162.07%)
Mutual labels:  drawer
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+19724.14%)
Mutual labels:  drawer
Pulley
A library to imitate the iOS 10 Maps UI.
Stars: ✭ 1,928 (+3224.14%)
Mutual labels:  drawer
Swiftui Animation
SwiftUI Animation
Stars: ✭ 233 (+301.72%)
Mutual labels:  drawer
Hyperion Android
App Debugging & Inspection Tool for Android
Stars: ✭ 1,778 (+2965.52%)
Mutual labels:  drawer
hipsbarjs
Hipsbarjs is a javascript plugin for easily creating drawers in web apps
Stars: ✭ 17 (-70.69%)
Mutual labels:  drawer
Hyperion Ios
In-app design review tool to inspect measurements, attributes, and animations.
Stars: ✭ 1,964 (+3286.21%)
Mutual labels:  drawer
react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast πŸš€
Stars: ✭ 604 (+941.38%)
Mutual labels:  drawer
Smartswipe
An android library to make swipe more easier and more powerful. Androidε„η§δΎ§ζ»‘οΌŒζœ‰θΏ™δΈ€δΈͺε°±ε€ŸδΊ†
Stars: ✭ 1,911 (+3194.83%)
Mutual labels:  drawer
Kwdrawercontroller
Drawer view controller that easy to use!
Stars: ✭ 154 (+165.52%)
Mutual labels:  drawer
Drawerview
A drop-in view, to be used as a drawer anywhere in your app
Stars: ✭ 251 (+332.76%)
Mutual labels:  drawer
Kf drawer
Flutter drawer (dynamic ready side menu)
Stars: ✭ 144 (+148.28%)
Mutual labels:  drawer
vue-modal
A customizable, stackable, and lightweight modal component for Vue.
Stars: ✭ 96 (+65.52%)
Mutual labels:  drawer
Zimlx
Open Source and free launcher for Android
Stars: ✭ 137 (+136.21%)
Mutual labels:  drawer
Material Menu
Animations for Android L drawer, back, dismiss and check icons
Stars: ✭ 2,481 (+4177.59%)
Mutual labels:  drawer
flutter advanced drawer
https://pub.dev/packages/flutter_advanced_drawer
Stars: ✭ 44 (-24.14%)
Mutual labels:  drawer
DKNavigationDrawer
Navigation Drawer for iOS using Swift. https://media.giphy.com/media/I45syjhreC0Rq/giphy.gif
Stars: ✭ 17 (-70.69%)
Mutual labels:  drawer
UX-UI-Navigation
UX / UI Custom NavigationDrawer with Fragment
Stars: ✭ 70 (+20.69%)
Mutual labels:  drawer

Codacy Badge codecov All Contributors Build Status Greenkeeper badge Known Vulnerabilities License: MIT npm FOSSA Status

vue-simple-drawer

TODO

  • remove shadow for default style
  • add cover layer option
  • rename the scss vars
  • nest drawer?

Install

npm install vue-simple-drawer --save

Quick Start

<template>
  <div id="app">
    <button @click="toggle">toggle</button>
    <Drawer @close="toggle" align="left" :closeable="true">
      <div v-if="open">content here</div>
    </Drawer>
  </div>
</template>

<script>
import Drawer from "vue-simple-drawer"
export default {
  name: "app",
  data() {
    return {
      open: true
    }
  },
  components: {
    Drawer
  },
  methods: {
    toggle() {
      this.open = !this.open
    }
  }
}
</script>

Prop Types

Property Type Required? Description
align String One of "left", "up", "right", "down", default is 'right'. the location of the drawer.
closeable Boolean show the x - close button, default true
mask Boolean show the mask layer - close button, default true
maskClosable Boolean emit 'close' event when click on mask layer, default: false
zIndex Number z-index value for the drawer, the nest drawer's z-index will be increased automatically, default is 1000

Events

Event Params Required? Description
close None will be triggered when user click the x close button

Slot

Slot Name Description
default the content display in the drawer which can show/hide the draw by v-if

Advance Guide

Nest Drawer

   <button @click="toggle">Open/Close</button>
    <Drawer @close="toggle" :align="align" :closeable="true">
      <div v-if="open">
        <span @click="innerOpen=true">
          content here
          content here
          content here
          content here
          content here
          content here
          content here
        </span>
        <Drawer @close="innerOpen=false" :align="align" :closeable="true">
          <div v-if="innerOpen">
            content here
            content here
            content here
          </div>
        </Drawer>
      </div>
    </Drawer>

    ...

      data() {
        return {
          open: false,
          innerOpen: false,
          align: "left"
        };
      },

Customized Theme

  • In your customized scss file (demo.scss)
$--simple-drawer-close-width: 50px;
@import "~vue-simple-drawer/src/index";
  • import the scss to override the default theme in main.js (entry file) after you import the Draw component
import "./demo.scss";

variables

close button style

  • $--simple-drawer-softorange
  • $--simple-drawer-tomatored
  • $--simple-drawer-mediumblu

close button size

  • $--simple-drawer-close-width

drawer background

  • $--simple-drawer-bg-color

drawer text color

  • $--simple-drawer-fg-color

License

FOSSA Status

Contributors

Thanks goes to these wonderful people (emoji key):

Vincent Guo
Vincent Guo

πŸ’» πŸ“– πŸš‡

This project follows the all-contributors specification. Contributions of any kind welcome!

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