Socket
Socket
Sign inDemoInstall

vue-heroicons

Package Overview
Dependencies
10
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-heroicons

Free 104 premium SVG icons for your Vue.js project


Version published
Weekly downloads
154
decreased by-8.88%
Maintainers
1
Install size
3.28 MB
Created
Weekly downloads
 

Readme

Source

version license downloads

vue-heroicons

alt text Free 104 premium heroicons-ui SVG icons for your Vue.js project

Demo

https://vue-heroicons.netlify.com/

Installation

// NPM
npm i vue-heroicons

// Yarn
yarn add vue-heroicons

Usage

main.js

import Vue from 'vue'
import HeroIcon from 'vue-heroicons'
import { archive, arrowDown } from 'vue-heroicons/src/icons'

HeroIcon.add([archive, arrowDown])
Vue.use(HeroIcon)

app.vue

<template>
    <div id="app">
        <heroicon name="archive"></heroicon>
        <heroicon name="arrow-down" fill="green"></heroicon>
    </div>
</template>

Add custom icon

my-custom-icons.js

export const customIcon = { name: 'custom-icon', path: '<path d="M13 5.41V21a1 1 0 0 1-2 0V5.41l-5.3 5.3a1 1 0 1 1-1.4-1.42l7-7a1 1 0 0 1 1.4 0l7 7a1 1 0 1 1-1.4 1.42L13 5.4z"/>' }

main.js

import Vue from 'vue'
import HeroIcon from 'vue-heroicons'
import { archive, arrowDown } from 'vue-heroicons/src/icons'
import { customIcon } from './my-custom-icons'

HeroIcon.add([archive, arrowDown, customIcon])
Vue.use(HeroIcon)

app.vue

<template>
    <div id="app">
        <heroicon name="custom-icon"></heroicon>
    </div>
</template>

Props

NameDescriptionTypeAccepted values
nameIcon nameString-
heightHeight of iconString-
widthWidth of iconString-
fillColor of iconStringHEX or color name

Keywords

FAQs

Last updated on 07 Mar 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc