@vuepress-plume/plugin-iconify
v1.0.0-rc.81
Published
The Plugin for VuePress 2 - iconify
Downloads
132
Readme
@vuepress-plume/plugin-iconify
添加 iconify
图标库支持。并注入全局组件 <Iconify>
Install
npm install @vuepress-plume/plugin-iconify
# or
pnpm add @vuepress-plume/plugin-iconify
# or
yarn add @vuepress-plume/plugin-iconify
Usage
// .vuepress/config.[jt]s
import { iconifyPlugin } from '@vuepress-plume/plugin-iconify'
export default {
// ...
plugins: [
iconifyPlugin()
]
// ...
}
Options
interface IconifyOptions {
/**
* 组件名, 默认 `Iconify`
*/
componentName?: string
color?: string
size?: string | number
}
Component
<Iconify name="material-symbols:home" color="currentColor" size="1em" />