vitepress-plugin-back-to-top

Back-to-top plugin for VitePress
8,489 19
Install
npm install vitepress-plugin-back-to-top
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Feb 12, 2023
Links: GitHub  ·  npm
Maintainer: wehuss

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

preview

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