1.6.0 • Published 3 years ago

vue-hicons v1.6.0

Weekly downloads
52
License
MIT
Repository
github
Last release
3 years ago

Vue-Hicons

Project setup

npm i -s vue-hicons@latest

Why use Vue-Hicons?

Okey, the answer to this question is very simple:

  • Write less, do more
  • It's easy to use and read
  • More sintactic

What does this package solve for me?

Okey, if you use Heroicons you should write something like this:

<svg
  class="w-6 h-6"
  fill="currentColor"
  viewBox="0 0 20 20"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M10.394 2.08a1 1 0 00-.788 0l-7 3a1 1 0 000 1.84L5.25 8.051a.999.999 0 01.356-.257l4-1.714a1 1 0 11.788 1.838L7.667 9.088l1.94.831a1 1 0 00.787 0l7-3a1 1 0 000-1.838l-7-3zM3.31 9.397L5 10.12v4.102a8.969 8.969 0 00-1.05-.174 1 1 0 01-.89-.89 11.115 11.115 0 01.25-3.762zM9.3 16.573A9.026 9.026 0 007 14.935v-3.957l1.818.78a3 3 0 002.364 0l5.508-2.361a11.026 11.026 0 01.25 3.762 1 1 0 01-.89.89 8.968 8.968 0 00-5.35 2.524 1 1 0 01-1.4 0zM6 18a1 1 0 001-1v-2.065a8.935 8.935 0 00-2-.712V17a1 1 0 001 1z"
  />
</svg>

But, with Vue-Hicons you just have to write something like this:

<VueHicons
  name="academic_cap"
  is-filled
/>

How to import this dependency

To import the component correctly we have to use the following import in the component that we want to use

import VueHicons from "vue-hicons"

And then we must add it in components

export default {
  components: {
    VueHicons
  }
}

Usage guide

PropTypeDefaultRequired
class-iconString-false
clip-ruleStringnonzerofalse
clip-rule-path2String-false
fill-colorStringnonefalse
fill-ruleStringnonzerofalse
fill-rule-path2String-false
is-filledBooleanfalsefalse
nameStringxtrue
sizeString-Number-false
stroke-colorString#000false
stroke-linecapStringroundfalse
stroke-linejoinStringroundfalse
stroke-widthNumber2false
view-boxString0 0 24 24false

How to use filled icons?

Example:

<VueHicons
  name="archive",
  is-filled
>

Supported icons

Heroicons: https://heroicons.dev/

1.6.0

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.8

3 years ago

1.2.80

3 years ago

1.2.74

3 years ago

1.2.73

3 years ago

1.2.72

3 years ago

1.2.71

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago