1.1.1 • Published 6 years ago

vue-simple-line v1.1.1

Weekly downloads
41
License
MIT
Repository
github
Last release
6 years ago

😸 SVG - Simple Line Icons VueJS v2.x compatible

This is a Vue component for Simple Line Icons and you may choose a SVG or a Font icon just with a prop. By default component will render SVG icon.

Simple Line Icons sample

Find the icon name: (http://simplelineicons.com/)

✅ Installation

Get the package:

npm install vue-simple-line

✅ Use

Register SimpleLineIcons in your app:

// In main.js
import Vue from 'vue'
import SimpleLineIcons from 'vue-simple-line'

Vue.component('simple-line-icons', SimpleLineIcons)

OR

// In your component.vue
import SimpleLineIcons from 'vue-simple-line'

new Vue({
    components: {
        SimpleLineIcons
    }
})

In your template you can call it like this:

<simple-line-icons
	icon="plus"
	:rotate="90"
	size="small"
	color="mediumseagreen"
	no-svg
/>

API

Required Prop

PropertyDescriptionTypeValue
iconIcon nameStringAny

Optional Props

PropertyDescriptionTypeValue
rotateRotation degreesNumber0-360
sizeIcon sizeStringsmall, large
colorColorStringHex,rgb(a),hsl(a),css color name
no-svgRender font icon instead of svgBooleanfalse

License

MIT

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago