@nuskin/ns-icon
v2.12.1
Published
A reusable Vue icon component
Downloads
2,831
Keywords
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.