A Tiny Drawer Component With Bounced Animation for Vue

vue-simple-drawer is a small drawer component with bounced/feedback animations for Vue.js applications.

vue material drawer, vue drawer layout, v navigation drawer click outside, navigation drawer vuetify example, vuetify sidebar example, v navigation drawer close on click

TODO

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

How to make use of it:

Install

npm install vue-simple-drawer --save

Usage

<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

PropertyTypeRequired?Description
alignString One of “left”, “up”, “right”, “down”, default is ‘right’. the location of the drawer.
closeableBoolean show the x – close button, default true
maskBoolean show the mask layer – close button, default true
maskClosableBoolean emit ‘close’ event when click on mask layer, default: false
zIndexNumber z-index value for the drawer, the nest drawer’s z-index will be increased automatically, default is 1000

Events

EventParamsRequired?Description
closeNone will be triggered when the user click the x close button

Slot

Slot NameDescription
defaultthe content display in the drawer which can show/hide the draw by v-if

tiny drawer component for vue js, vue-simple-drawer Plugin/Github, vue menu component


See Demo And Download

Official Website(dreambo8563): Click Here

This superior jQuery/javascript plugin is developed by dreambo8563. For extra advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…