3.2.3 • Published 6 months ago

healthicons-vue v3.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Vue Healthicons

This package provides a simple and easy-to-use interface for accessing all the healthicons within your Vue projects. You can see the full list of icons at healthicons

healthicons-vue is an open source package that exports these Healthicons as Vue.js components that can be used in all of your Vue projects.

Installation

yarn add healthicons-vue

or

npm i healthicons-vue

Usage

<script setup>
  import { BloodBag } from 'healthicons-vue';
  // importing 24px icons
  import { BloodBagOutline24px } from 'healthicons-vue';
</script>

<template>
  <BloodBag />
</template>

Default values for the most common props are given below:

Prop nameDefault value
color"currentColor"
width"1.5em"
height"1.5em"
strokeWidth1.5
fill"none"

HealthIconsProvider

Tired of specifying the same props for every single icon, every time you use them? So were we. Use HealthIconsProvider to set the default icon props for everything inside HealthIconsProvider.

<script setup>
import { HealthiconsProvider, Bloodbag } from 'healthicons-vue';
</script>

<template>
  <HealthiconsProvider
    :icon-props="{
      'color': '#AAAAAA',
      'stroke-width': 1,
      'width': '1em',
      'height': '1em',
    }"
  >
    <Container>
      <Bloodbag />
    </Container>
  </HealthiconsProvider>
</template>

Naming conventions for icons

The Vue components in this package are named using the PascalCase convention, which is a variation of their reference names (e.g. add-circle-outline becomes AddCircleOutline).

HealthIcons NameVue Component
blood-bagBloodBag
3.2.2

7 months ago

3.2.1

7 months ago

3.2.0

7 months ago

3.1.1

8 months ago

3.2.3

6 months ago

3.1.0

10 months ago

3.0.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago