vitepress-plugin-back-to-top
vitepress-plugin-back-to-top
Back-to-top plugin for VitePress
Installation
Available as an npm package
// with npm
npm i vitepress-plugin-back-to-top
// with yarn
yarn add vitepress-plugin-back-to-top
Usage
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import vitepressBackToTop from 'vitepress-plugin-back-to-top'
import 'vitepress-plugin-back-to-top/dist/style.css'
export default {
...DefaultTheme,
enhanceApp({ app }) {
vitepressBackToTop({
// default
threshold:300
})
},
}
Preview Gif

Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.1 | ^3.2.45 | MIT | |
| 1.0.0 | ^3.2.45 | MIT | |
| 0.0.5 | ^3.2.45 | MIT | |
| 0.0.3 | ^3.2.45 | MIT | |
| 0.0.2 | ^3.2.45 | MIT | |
| 0.0.1 | ^3.2.45 |