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

@heavyind/vue-modal

v0.0.5

Published

A modal plugin for Vue projects

Downloads

22

Readme

Heavy Industries vue-modal

Note This is highly experimental. It could spontaneously combust while using.

What it is

A plugin to add modal functionality to a Vue application. It depends on Vuex.

What it isn't

It is not a kitchen sink solution, nor is it even a modal component. There are plenty of fantastic packages out there already for those looking for pre-built components.

This project is rather a Vuex API for handling modal components. It is abstracted out for the sake of consistency and simplicity across projects, and eschews complex configurations objects and stylistic assumptions. It requires a little more boilerplate, but its minimal interface demands little familiarity with anything other than Vue itself.

Installation

Via npm:

npm i --save @heavyind/vue-modal

Via yarn:

yarn add @heavyind/vue-modal

Via unpkg:

<script src="https://unpkg.com/@heavyind/vue-modal"></script>

Usage

Getting started

Pass a configuration object containing your store into the plugin:

import VueModalPlugin from "@heavyind/vue-modal";

Vue.use(VueModalPlugin, { store })

By default, you must access the API by assigning it to component properties and methods (mapState, mapActions).

Configuration

Configuration must include the Vuex store object that you intend to use.

Default

The default configuration object has the following form:

{ store: null,
  mixin: false, 
  mixinNamespace: "$modal"
  storeNamespace: "modal"
}

Configuration in-depth

store

The Vuex store you intend to use.

mixin

A boolean representing whether or not the plugin should attach a global mixin that allows you to access properties and methods on each object. This mixin will be scoped to mixinNamespace, which defaults to "$modal".

storeNamespace

The namespace of the VueModal module in your Vuex store. Defaults to "modal".

mixinNamespace

The name bound to each component that allows you to easily access modal properties and methods, should mixin be set to true. Defaults to "$modal" (e.g., this.modal.open);

API

isOpen

The open state of the modal.

settings

The settings object, which takes the form { component, props }, where component represents the optional component inside the modal and props represents the optional props of that component.

component

An alias of settings.component.

props

An alias of settings.props.

open

Sets open state to true.

openWith

Sets open state to true and stores a settings object of type { component: Component, props: Object } which contains the current modal component and any props that should be passed to it.

close

Sets the open state to false.

toggle

Sets the open state to !open.

setComponent

Sets the inner component of the modal.

setProps

Sets any props you would like to pass to the inner component of the modal.

License

MIT