0.0.5 • Published 7 months ago
@doki-land/live2d-vitepress v0.0.5
Live2D for VitePress (Unofficial)
Usage
This package provides Live2D model integration for VitePress documentation sites. It allows you to easily add interactive Live2D characters to your VitePress project.
- Installation
npm install @doki-land/live2d-vitepressUsage
- Import the plugin in your VitePress config file:
import { live2dPlugin } from '@doki-land/live2d-vitepress'
export default {
// ...
plugins: [
live2dPlugin({
// Configuration options
})
]
}- Add the Live2D canvas element to your layout component:
<Live2DCanvas />Configuration Options
modelPath: Path to your Live2D model filesscale: Initial scale of the modelposition: Model position on screeninteractive: Enable/disable user interactions