0.1.7 • Published 6 years ago
vue-transformicons v0.1.7
Transformicons ·

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.jsTransformicons 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 tobutterfly. Values available:butterflyminusx-crossarrow-uparrow-360-leftarrow-left
active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 tominus. Values available:minuscheck
active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 tominus. Values available:minuscheck
active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 tocheck. Values available:checkchevron-leftchevron-rightchevron-downchevron-up
active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 isemail.active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 issearch.active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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 isplay.active- boolean, optional - Sets initial state for the button. Defaults tofalse.
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