Getting Started
Install
sh
npm install vitepress-plugin-group-icons -D
sh
yarn add vitepress-plugin-group-icons -D
sh
pnpm add -D vitepress-plugin-group-icons
sh
bun vitepress-plugin-group-icons -d
Configuration
ts
import { defineConfig } from 'vitepress'
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
export default defineConfig({
markdown: {
config(md) {
md.use(groupIconMdPlugin)
},
},
vite: {
plugins: [
groupIconVitePlugin()
],
}
})
ts
import Theme from 'vitepress/theme'
import 'virtual:group-icons.css'
export default Theme