Getting Started with Vue.js
Memory Icons can be used in conjunction with the Vue Icon Component. See the README in the repo for more usage information.
-
Install from NPM.
npm install @pictogrammers/memory @jamescoyle/vue-icon
-
Import into your project.
import SvgIcon from '@jamescoyle/vue-icon'; import { memoryAccount } from '@pictogrammers/memory';
The following example shows how you might use an icon within a single file component.
<template> <svg-icon type="memory" :path="path"></svg-icon> </template> <script> import SvgIcon from '@jamescoyle/vue-icon'; import { memoryAccount } from '@pictogrammers/memory'; export default { name: "my-cool-component", components: { SvgIcon }, data() { return { path: memoryAccount, } } } </script>