@4tw/vue-svg-icon

Vue component to display svg icons.
1,808
Install
npm install @4tw/vue-svg-icon
Latest Version:1.0.2
Vue:2
License:MIT
Last Updated:Jul 2, 2019
Links: npm
Maintainer: gaebu

vue-svg-icon

Vue component to display svg icons.

Installation

yarn add @4tw/vue-svg-icon
yarn add --dev @4tw/vue-cli-plugin-svg-icon

Usage

Follow the usage on https://github.com/4teamwork/vue-cli-plugin-svg-icon.

Make sure you transpile the @4tw/vue-svg-icon dependency in your project. Because we use dynamic imports, it's not possible to precompile the library.

When you are using vue-cli simply add this option: https://cli.vuejs.org/config/#transpiledependencies.

// vue.config.js
module.exports = {
  // ...
  transpileDependencies: ['@4tw/vue-svg-icon'],
  // ...
}

Otherwise include the library in your webpack config so vue-loader and babel-loader compile the dependency.

<svg-icon>myicon</svg-icon>

Related Packages

@4tw/ui

A collection of vue components used in different applications of 4teamwork. The...

4,848 2
@4tw/vue-cli-plugin-cypress-django

Integration testing with cypress and django

2,900 4
@4tw/vue-drop-zone

A vue component for drag'n'drop upload using uppy.io

2,519 2
@4tw/vue-cli-plugin-svg-icon

Adds webpack rules to generate optimized svg sprites.

1,418 0
@4tw/vue-cli-plugin-vuetify-preset-4tw

4teamwork vuetify preset

591

Version History

Version Released Vue License
1.0.2 ^2.6.10 MIT
1.0.1 ^2.6.10 MIT
1.0.0 ^2.6.10 MIT
0.3.0 ^2.6.10 MIT
0.2.1 ^2.6.10 MIT