GithubHelp home page GithubHelp logo

moehmeni / viconly Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 483 KB

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

License: MIT License

JavaScript 16.99% Vue 7.31% CSS 75.71%
icon-font icon-pack iconly icons vue vue-icons

viconly's Introduction

Viconly

Vue.js component wrapper for a free and nice-looking icon pack, Iconly. You can see all the styles and names here

Installation

yarn add viconly

Usage

Declare the component globally

import Viconly from 'viconly'

Vue.component('ic', Viconly)

then in your .vue template

<ic name="Home" />

or with more customizations

<ic name="Home" bold color="green" size="1.5rem" />

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. 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

import Vue from 'vue'
import Viconly from 'viconly'

Vue.component('ic', Viconly)

nuxt.config.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.

viconly's People

Contributors

moehmeni avatar

Stargazers

 avatar

Watchers

 avatar

viconly's Issues

Not working

This module is simply not working with the latest Vue, as it is most likely not updated. Please fix or give an update on this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.