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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aphorica/vuetify-icon-stack

v1.0.2

Published

Multiple icon stack, clickable option

Downloads

3

Readme

@aphorica/vuetify-icon-stack

github: https://aphorica.github.com Web: https://aphorica.com

Installing

npm install @aphorica/vuetify-icon-stack

or

yarn add @aphorica/vuetify-icon-stack

Running the Demo

In a command prompt, cd info the 'demo' directory, and:

  (yarn|npm) install
  (yarn|npm run) serve)

Open a browser on localhost:8080

Click the buttons in the toolbar to reset the iconStack component state (in the center of the page).

Click on the iconStack component for it to emit its current state.

Overview

Extremely light implementation of an icon stack.

Each icon is associated with a state. When a state is subsequently set, the associated icon becomes visible and clickable.

Stack order does not change, only button visibility changes.

Clicking on the icon stack emits the associated state with the visible icon.

You simply provide your own v-icons in the slot. This allows for the most flexibility in usage and defining your icon sets.

Note the data-state attribute required for each icon in the Usage section below.

Usage

The module is implemented as a simple container with a single slot for your icons. Icons must be tagged with a data-state attribute specifying the state for that icon. State can be anything.

Example (from the attached demo):

        <vuetify-icon-stack :initialState="currentState"
          @clicked="onStackIconClicked">
          <v-icon data-state="add" color="primary" x-large>mdi-plus-circle</v-icon>
          <v-icon data-state="commit" color="primary" x-large>mdi-check-circle</v-icon>
          <v-icon data-state="abort" color="black" x-large>mdi-close-circle</v-icon>
        </vuetify-icon-stack>

The stack's current state is set by using EventBus to emit a message to it:

      EventBus.$emit('set-vuetify-icon-stack-state', state)

Note that if you send an invalid state, it will silently fail.

props

The component accepts two props:

initialState (required)

Specify the state corresponding to the icon you want to show on instantiation.

        <vuetify-icon-stack :initialState="currentState">
          ...
          ...
        </vuetify-icon-stack>

size (optional)

Specify the icon size. Any css spec will work.

        <vuetify-icon-stack :initialState="currentState"
                            size="100px">
          ...
          ...
        </vuetify-icon-stack>

If you don't specify the size, the icons will be displayed in their normal size. Note they should all be the same size if you're using v-icon properties like x-large (but that is not enforced)