2.12.1 • Published 2 years ago
@nuskin/ns-icon
Licence
ISC
Version
2.12.1
Deps
4
Size
480 kB
Vulns
1
Weekly
0
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.