vue-heroicons

0.9.4 • Public • Published

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

Name Description Type Accepted values
name Icon name String -
height Height of icon String -
width Width of icon String -
fill Color of icon String HEX or color name

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.4
    127
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.4
    127
  • 0.9.3
    0
  • 0.9.2
    0
  • 0.9.1
    0

Package Sidebar

Install

npm i vue-heroicons

Weekly Downloads

99

Version

0.9.4

License

MIT

Unpacked Size

465 kB

Total Files

42

Last publish

Collaborators

  • kholid060