npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-drawer-plugin

v1.0.1

Published

A panel which slides in from the edge of the screen.

Downloads

5

Readme

Vue-Drawer-Plugin

A panel which slides in from the edge of the screen.

codecov vuejs version Liscense Build Status PRs Welcome

When To Use

A Drawer is a panel that is typically overlaid on top of a page and slides in from the side. It contains a set of information or actions. Since the user can interact with the Drawer without leaving the current page, tasks can be achieved more efficiently within the same context.

  • Use a Form to create or edit a set of information.

  • Processing subtasks. When subtasks are too heavy for a Popover and we still want to keep the subtasks in the context of the main task, Drawer comes very handy.

  • When the same Form is needed in multiple places.

API

Props | Description | Type | Default -|-|-|- showClose | Whether a close (x) button is visible on top right of the Drawer dialog or not. | Boolean | true | showHeader | Whether a header container is visible on top of the Drawer dialog or not, which you can set the title. | Boolean | true | title | You can set the title if showHeader is true. | String | - | mask | Whether to show mask or not. | Boolean | true | maskCloseable | Clicking on the mask (area outside the Drawer) to close the Drawer or not. | Boolean | true | maskStyle | Style of Drawer's mask element. | Object | - | wrapStyle | Style of Drawer wrapper. | Object | - | bodyStyle | Style of floating layer, typically used for adjusting its position. | Object | - | visible | Whether the Drawer dialog is visible or not. | Boolean | false | width | Width of the Drawer dialog. | String | Number | 256 | height | Placement is top or bottom, height of the Drawer dialog. | String | Number | 256 | className | The class name of the container of the Drawer dialog. | String | - | zIndex | The z-index of the Drawer. | Number | 1000 | placement | The placement of the Drawer. | String | 'right' | close-on-press-escape | Whether the dialog can be closed by pressing ESC. | boolean | true | before-close | Callback before Drawer Dialog close, and it will prevent Dialog from closing. | function(done),done is used to close the Drawer Dialog | - |

How to use

Install

npm install vue-drawer-plugin -S

// or

yarn add vue-drawer-plugin

Demo

Quick Start

import vueDrawer from 'vue-drawer-plugin';

Vue.use(vueDrawer);
// single-component.vue
<template>
    <vue-drawer
        :visible.sync="visible"
        class="test-wrap-class"
        title="header"
        width="70vw"
        height="200px"
        @opened="opened"
        :before-close="handleClose"
        @close="closeRightNow"
        @closed="closed"
        :wrap-style="{ border: '1px solid #ddd' }"
        :body-style="{ background: '#ddd' }"
        :mask-closeable="true"
        :show-close="true"
    >
    <div>This is content inside Drawer dialog</div>
    <button @click="openAnother">feel free to open another Drawer inside your Drawer</button>
</vue-drawer>
</template>

Browser Support

Modern browsers and Internet Explorer 10+.

| IE / Edge | Firefox | Chrome | Safari | Opera | Electron | | --- | --- | --- | --- | --- | --- | | IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

Development

Skip this part if you just want to use vue-drawer-plugin.

For those who are interested in contributing to this plugin, you can submit pull request or just download this repository and run.

License

vue-drawer-plugin is released under the MIT License.