Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-ionicons

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-ionicons

Vue Icon Set Components from Ionic Team

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
638
decreased by-19.55%
Maintainers
1
Weekly downloads
 
Created
Source

vue-ionicons

:snowman: Vue Icon Set Components from Ionic Team

Design Icons, sourced from the Ionicons project.

Demo

https://mazipan.github.io/vue-ionicons (under development)

Getting started

  1. Install the package

    $ npm install --save vue-ionicons
    

    OR

    $ yarn add vue-ionicons
    
  2. Import the icon, and declare it as a local component:

    import AlertIcon from 'vue-ionicons/alert.vue'
    
    components: {
      AlertIcon
    }
    

    OR

    Declare it as a global component:

    import AlertIcon from 'vue-ionicons/alert.vue'
    
    Vue.component('menu-icon', AlertIcon)
    

    Note Icon files are kebab cased, e.g. alert-circle.vue, and their default name has -icon appended e.g. alert-circle-icon.

  3. Then use it in your template code!

    <menu-icon />
    

Icons

A list of the icons can be found at the Ionicons Repository

Tips

  • Use resolve in your Webpack config to clean up the imports:

    resolve: {
       alias : {
         "icons": path.resolve(__dirname, "node_modules/vue-ionicons")
       },
      extensions: [
        ".vue"
      ]
    }
    

    This will give you much shorter and more readable imports, like import Android from 'icons/android', rather than import Android from 'vue-ionicons/android.vue'. Much better!

Credits

FAQs

Package last updated on 11 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc