@zlab-de/zel-vue-icons

Vue components for icons in the Zeppelin Design System
914
Install
npm install @zlab-de/zel-vue-icons
Latest Version:1.0.1
Vue:2
License:MIT
Last Updated:Sep 15, 2023
Links: GitHub  ·  npm
Maintainer: adjeiessel

Zeppelin Element Library Vue Component Icons: @zlab-de/zel-vue-icons

A vue icon component library that was generated using Carbon Design System build files.

Getting started

yarn add @zlab-de/zel-vue-icons

Usage

Method 1: global

You can install these components two ways. The first is to install them when you're initializing your Vue app. For example:

import { ZelVueIcons } from '@zlab-de/zel-vue-icons';
import ZepiconsCart from '@zlab-de/zel-rvue-icons/ZepiconsCart';
import Vue from 'vue';
import App from './App.vue';

Vue.use(ZelVueIcons, {
  components: {
    ZepiconsCart,
  },
});

new Vue({
  render: h => h(App),
}).$mount('#app');

Using ZelVueIcons we can pass in any of the icon components that we'd like to use. In our application, we can then use them by doing:

<template>
  <ZepiconsCart />
</template>

Method 2: local

import ZepiconsCart from '@zlab-de/zel-vue-icons/ZepiconsCart';

export default {
  name: 'MyComponent',
  component: {
    ZepiconsCart,
  },
};
<template>
  <ZepiconsCart aria-label="cart" class="custom-class" v-on:click="handler" />
</template>

To make new components

Add all svgs to svg folder in icons and then run build. Next run build in icons-vue. To make the npm package a bit nicer, the folders esm, lib, package.json and README.md are copied to a build folder and npm is published from there.

Related Packages

@vue-hero-icons/outline

A set of free MIT-licensed high-quality SVG icons as Vue functional components.

246,298 101
@nuxt-hero-icons/outline

A set of free MIT-licensed high-quality SVG icons as Vue functional components.

5,626 4
@4kda/vuetify-cifrum-icons

The Cifrum icons for Vuetify

1,759
mdue

Material Design Icons for Vue 3

33,661 29
@univerjs/icons-vue

Vue icons for Univer.

6,996 18

Version History

Version Released Vue License
1.0.1 ^2.6.8 MIT
1.0.0 ^2.6.8 MIT
0.0.2 ^2.6.8 MIT
0.0.1 ^2.6.8 MIT