New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@enmo-design/icons-vue

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enmo-design/icons-vue

Enmo Design Icons for Vue.

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Enmo Design Icons for Vue2.x

NPM version NPM downloads

Install

npm install @enmo-design/icons-vue

Basic Usage

<template>
  <div>
    <smile-outlined></smile-outlined>
    <smile-outlined width="60" height="60"></smile-outlined>
    <smile-outlined width="60" height="60" spin></smile-outlined>
    <smile-outlined width="60" height="60" :rotate="45"></smile-outlined>
  </div>
</template>

<script>
  import { SmileOutlined } from '@enmo-design/icons';

  export default {
    components: { SmileOutlined }
  }
</script>
Supported props
PropertyDescriptionTypeDefault
widthThe width of the svg elementstring | number'1em'
heightThe height of the svg elementstring | number'1em'
rotateRotate degrees (not working in IE9)number-
spinRotate icon with animationbooleanfalse

Custom Svg Icon

You can import SVG icon as an vue component by using vue cli 3 and vue-svg-loader. vue-svg-loader's options reference.

// vue.config.js
module.exports = {
  chainWebpack: (config) => {
    const svgRule = config.module.rule('svg')

    svgRule.uses.clear()

    svgRule
      .use('babel-loader')
      .loader('babel-loader')
      .end()
      .use('vue-svg-loader')
      .loader('vue-svg-loader')
      .options({
        svgo: {
          plugins: [{removeViewBox: false}]
        }
      })
  }
}
<template>
  <div>
    <icon :component="MessageSvg"></icon>
    <icon :component="MessageSvg" width="60" height="60"></icon>
    <icon :component="MessageSvg" width="60" height="60" :rotate="45"></icon>
    <icon :component="MessageSvg" width="60" height="60" spin></icon>
    <icon :component="MessageSvg" width="60" height="60"  @click="clickHandler"></icon>
  </div>
</template>

<script>
  import Icon from '@enmo-design/icons';
  import MessageSvg from 'path/to/message.svg'; // path to your '*.svg' file.

  export default {
    components: { Icon },
    data () {
      return {
        MessageSvg
      }
    }
  }
</script>
Supported props
PropertyDescriptionTypeDefault
componentSVG icon component load by vue-svg-loadervue component-
widthThe width of the svg elementstring | number'1em'
heightThe height of the svg elementstring | number'1em'
rotateRotate degrees (not working in IE9)number-
spinRotate icon with animationbooleanfalse

FAQs

Package last updated on 31 Mar 2021

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