vue-transformicons

Transformicons for Vue
725 5
Install
npm install vue-transformicons
Latest Version:0.1.7
Vue:2
License:MIT
Last Updated:Mar 8, 2020
Links: GitHub  ·  npm
Maintainer: coderdiaz

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

Related Packages

@xunlei/vue-lazy-component

Vue.js 2.0 组件级懒加载方案 Vue.js 2.x component level lazy loading solution

14,137 1,003
@xunlei/vue-context-menu

Vue 2.0 右键菜单组件,菜单内容可以随意自定义

7,700 335
vue-rate

Rate component for Vue

37,690 222
vue-truncate-collapsed

A simple component that truncates your text and adds a 'Read More/Show Less' cli...

75,853 104
coview

A ui components library with vue.js

1,972 6

Version History

Version Released Vue License
0.1.7 ^2.6.10 MIT
0.1.6 ^2.6.10 MIT
0.1.5 ^2.5.17 MIT
0.1.4 ^2.5.17 MIT
Pre-releases (1)
Version Released Vue License
0.1.6-beta.1 ^2.6.10 MIT