0.1.0 • Published 6 years ago
vuepress-plugin-svg-sprite v0.1.0
Vuepress Plugin Svg Sprite
Register a global <svg-icon /> component for VuePress.
See Demo on CodeSandbox
Installation
yarn add vuepress-plugin-svg-sprite -S
or
npm i vuepress-plugin-svg-sprite -SRegister the plugin
...
module.exports = {
...,
plugins: {
['svg-sprite']
},
...
}
...Usage
<svg-icon symbol="github" />API
| Props | Description | Type | Default |
|---|---|---|---|
| symbol | - | String | - |
| iconClass | - | String | - |
License
MIT
0.1.0
6 years ago