@nuskin/ns-icon

A reusable Vue icon component

Usage no npm install needed!

<script type="module">
  import nuskinNsIcon from 'https://cdn.skypack.dev/@nuskin/ns-icon';
</script>

README

NsIcon

This repo contains a single reusable Vue icon component


To use icon component

Add NsIcon to your project

yarn add @nuskin/ns-icon

Import NsIcon into your Vue Component

import { NsIcon } from '@nuskin/ns-icon';

export default() {
  name: 'YourComponentName',
  components: { NsIcon }
}

In your HTML you can use it like this:

<ns-icon icon-name="icon-cart-trans-plus" />

For full list of NsIcon options see the documentation on Nu Skin's Vue Storybook.