Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/moehmeni/viconly

Vue component for a free and nice-looking icon pack, Iconly.
https://github.com/moehmeni/viconly

icon-font icon-pack iconly icons vue vue-icons

Last synced: 16 days ago
JSON representation

Vue component for a free and nice-looking icon pack, Iconly.

Awesome Lists containing this project

README

        

# Viconly
Vue.js component wrapper for a free and nice-looking icon pack, [Iconly](https://piqodesign.gumroad.com/l/iconly).
You can see all the styles and names [here](https://amirrezajef.ir/iconly/demo.html)

## Installation
```bash
yarn add viconly
```

## Usage
Declare the component globally
```js
import Viconly from 'viconly'

Vue.component('ic', Viconly)
```
then in your `.vue` template
```vue

```
or with more customizations
```vue

```
You can either use `broken`, `bold`, or `bulk` for the icon style while the default style is __light__.

## Nuxt usage
You can use Viconly component globally using Nuxt [plugins directory](https://nuxtjs.org/docs/directory-structure/plugins/).
create a `viconly.js` in `plugins` directory of your Nuxt project (create the directory itself if it doesn't exist) then declare the component and CSS styles in `nuxt.config.js`.

`/plugins/viconly.js`
```js
import Vue from 'vue'
import Viconly from 'viconly'

Vue.component('ic', Viconly)
```
`nuxt.config.js`
```js
plugins: [
{ src: "@/plugins/viconly.js" },
],
css: [
"viconly/src/iconly/style.css",
"viconly/src/iconly/bulk-style.css",
],
```
After this you're able to use the `ic` (or whatever you named it) component globally in any of your Nuxt project templates.