An open API service indexing awesome lists of open source software.

https://github.com/nkoik/vue-simple-line-icons

😸 Vue component for Simple Line Icons and you may choose a SVG or a Font icon just with a prop.
https://github.com/nkoik/vue-simple-line-icons

Last synced: 3 months ago
JSON representation

😸 Vue component for Simple Line Icons and you may choose a SVG or a Font icon just with a prop.

Awesome Lists containing this project

README

          

# 😸 SVG - Simple Line Icons ![VueJS v2.x compatible](https://img.shields.io/badge/vue%202.x-compatible-green.svg)

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](https://image.freepik.com/free-vector/simple-line-icons_302-2147488249.jpg "Sample")


Version
License

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

## ✅ Installation

Get the package:
```bash
npm install vue-simple-line
```

## ✅ Use

Register SimpleLineIcons in your app:
```js
// 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:

```html

```
### API

Required Prop

| Property | Description | Type | Value
|:--|:--|:--|:--|
| icon | Icon name | String | Any |

Optional Props

| Property | Description | Type | Value
|:--|:--|:--|:--|
| rotate | Rotation degrees | Number | 0-360 |
| size | Icon size | String | small, large |
| color | Color | String | Hex,rgb(a),hsl(a),css color name |
| no-svg | Render font icon instead of svg | Boolean | false |

### License
MIT