Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/loveyunk/vue-iconfont-component

A Vue component for use iconfont
https://github.com/loveyunk/vue-iconfont-component

icon-font iconf iconfont vue-components vue-iconfont-component

Last synced: 5 days ago
JSON representation

A Vue component for use iconfont

Awesome Lists containing this project

README

        

# vue-iconfont-component

[![https://img.shields.io/npm/v/vue-iconfont-component](https://img.shields.io/npm/v/vue-iconfont-component)](https://www.npmjs.com/package/vue-iconfont-component)
[![https://img.shields.io/npm/dt/vue-iconfont-component](https://img.shields.io/npm/dt/vue-iconfont-component)](https://www.npmjs.com/package/vue-iconfont-component)
[![https://img.shields.io/npm/dm/vue-iconfont-component](https://img.shields.io/npm/dm/vue-iconfont-component)](https://www.npmjs.com/package/vue-iconfont-component)
[![https://img.shields.io/npm/l/vue-iconfont-component](https://img.shields.io/npm/l/vue-iconfont-component)](https://github.com/loveyunk/vue-iconfont-component/blob/master/LICENSE)

> A Vue component for use iconfont

### How to use?

```bash
npm install vue-iconfont-component --save
```

### Example

```js

import VueIconfont from 'vue-iconfont-component';
export default {
components: { VueIconfont }
}

```

### Options

| Property | Description | Type | default |
| -------- | --------------------------- | -------------- | ------- |
| type | the value of iconfont type | String | - |
| size | the value of iconfont size | Number, String | - |
| color | the value of iconfont color | String | - |

### Events

| Function Name | Description |
| ------------- | ------------------------------- |
| on-click | triggers when clicking the icon |