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

vue-transformicons

v0.1.7

Published

Transformicons for Vue

Downloads

23

Readme

Transformicons · NPMVERSION GITHUBSTARS BUILD DOWNLOADS

Transformicons for Vue.

Install/Usage

# Using npm
$ npm i -S vue-transformicons

# or yarn
$ yarn add vue-transformicons
<div id="#app">
  <menu-icon></menu-icon>
</div>

You can use Local Registration:

import { MenuIcon } from 'vue-transformicons'
export default {
  components: {
    MenuIcon
  }
}

or Global Registration:

import VueTransformicons from 'vue-transformicons';
Vue.use(Transformicons);

// or with a custom component name
import { MenuIcon } from 'vue-transformicons';
Vue.component('custom-name', MenuIcon);

Usage in SSR

For use this package with Nuxt or another SSR server, is necessary to use the SSR build.

import { MenuIcon } from 'vue-transformicons/dist/vue-transformicons.ssr';

Usage in browser

In browser you can use Unpkg, Jsdelivr, CDN.js, etc.

# Unpkg
https://unpkg.com/vue-transformicons@latest/dist/vue-transformicons.js

# JSDelivr
https://cdn.jsdelivr.net/npm/vue-transformicons@latest/dist/vue-transformicons.min.js

Transformicons Components

Menu Icons

Provides with Menu icons.

Parameters:

  • animation - string, optional - Sets the menu animation type. In case this parameter is not provided, it will default to butterfly. Values available:
    • butterfly
    • minus
    • x-cross
    • arrow-up
    • arrow-360-left
    • arrow-left
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<menu-icon></menu-icon>
<menu-icon animation="minus"></menu-icon>
<menu-icon animation="x-cross"></menu-icon>
<menu-icon animation="arrow-up"></menu-icon>
<menu-icon animation="arrow-left"></menu-icon>
<menu-icon animation="arrow-left" :active="true"></menu-icon>

Grid Icons

Provides with Grid icons.

Parameters:

  • animation - string, optional - Sets the menu animation type. In case this parameter is not provided, it will default to minus. Values available:
    • minus
    • check
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<grid-icon></grid-icon>
<grid-icon animation="rearrange"></grid-icon>
<grid-icon animation="collapse"></grid-icon>
<grid-icon animation="collapse" :active="true"></grid-icon>

Add Icons

Provides with Add icons.

Parameters:

  • animation - string, optional - Sets the menu animation type. In case this parameter is not provided, it will default to minus. Values available:
    • minus
    • check
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<add-icon></add-icon>
<add-icon animation="minus"></add-icon>
<add-icon animation="check"></add-icon>
<add-icon animation="minus" :active="true">

Remove Icons

Provides with Remove icons.

Parameters

  • animation - string, optional - Sets the menu animation type. In case this parameter is not provided, it will default to check. Values available:
    • check
    • chevron-left
    • chevron-right
    • chevron-down
    • chevron-up
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<remove-icon></remove-icon>
<remove-icon animation="check"></remove-icon>
<remove-icon animation="chevron-left"></remove-icon>
<remove-icon animation="chevron-right"></remove-icon>
<remove-icon animation="chevron-down"></remove-icon>
<remove-icon animation="chevron-up"></remove-icon>
<remove-icon animation="check" :active="true"></remove-icon>

Contact Icons

Provides with Contact icons.

Parameters:

  • animation - string, optional - So far, the only available animation is email.
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<contact-icon></contact-icon>
<contact-icon :active="true"></contact-icon>
<contact-icon animation="email" ></contact-icon>

Form Icons

Provides with Form icons.

Parameters:

  • animation - string, optional - So far, the only available animation is search.
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<form-icon></form-icon>
<form-icon :active="true"></form-icon>
<form-icon animation="search"></form-icon>

Video Icons

Provides with Video icons.

Parameters:

  • animation - string, optional - So far, the only available animation is play.
  • active - boolean, optional - Sets initial state for the button. Defaults to false.

Examples

<video-icon></video-icon>
<video-icon :active="true"></video-icon>
<video-icon animation="play"></video-icon>

Scroll Icon

Provides with a scroll icon.

Examples

<scroll-icon></scroll-icon>

Loader Icon

Provides with a Loader icon.

Examples

<loader-icon></loader-icon>

Community

All feedback and suggestions are welcome!

License

This is a open-source software licensed under the MIT license