Socket
Socket
Sign inDemoInstall

@iconify/vue

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iconify/vue

Iconify icon component for Vue 3.


Version published
Weekly downloads
138K
increased by1.32%
Maintainers
1
Weekly downloads
 
Created

What is @iconify/vue?

@iconify/vue is a Vue component for Iconify, which provides a unified framework for using a wide range of icon sets. It allows you to easily integrate icons from various icon libraries into your Vue.js applications.

What are @iconify/vue's main functionalities?

Basic Icon Usage

This feature allows you to use icons from different icon sets by specifying the icon name. In this example, the 'mdi:home' icon from the Material Design Icons set is used.

<template>
  <Icon icon="mdi:home" />
</template>

<script>
import { Icon } from '@iconify/vue';

export default {
  components: {
    Icon
  }
};
</script>

Customizing Icon Size

You can customize the size of the icons by setting the width and height properties. This example sets the icon size to 48x48 pixels.

<template>
  <Icon icon="mdi:home" width="48" height="48" />
</template>

<script>
import { Icon } from '@iconify/vue';

export default {
  components: {
    Icon
  }
};
</script>

Inline Icon

The inline property allows the icon to be aligned with the text, making it useful for inline text elements.

<template>
  <Icon icon="mdi:home" inline />
</template>

<script>
import { Icon } from '@iconify/vue';

export default {
  components: {
    Icon
  }
};
</script>

Customizing Icon Color

You can change the color of the icon by setting the color property. This example sets the icon color to red.

<template>
  <Icon icon="mdi:home" color="red" />
</template>

<script>
import { Icon } from '@iconify/vue';

export default {
  components: {
    Icon
  }
};
</script>

Other packages similar to @iconify/vue

FAQs

Package last updated on 31 Mar 2022

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